Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various adapters: remove use of storageManager bypasses #8690

Merged
merged 26 commits into from
Jul 22, 2022
Merged

Conversation

patmmccann
Copy link
Collaborator

Fixes #8689

@patmmccann patmmccann changed the title Various adapters: remove use of document.cookie Various adapters: remove use of storageManager bypasses Jul 15, 2022
@patmmccann patmmccann marked this pull request as draft July 15, 2022 16:00
@lgtm-com
Copy link

lgtm-com bot commented Jul 15, 2022

This pull request introduces 1 alert when merging da2ff53 into 4e1ed0c - view on LGTM.com

new alerts:

  • 1 for Syntax error

@patmmccann
Copy link
Collaborator Author

patmmccann commented Jul 18, 2022

@jsadwith looking for your feedback here; it isn't obvious to me why your tests are failing.

@kjavaherpour
Copy link

@jsadwith looking for your feedback here; it isn't obvious to me why your tests are failing.

Testing locally to get this resolved

@kjavaherpour
Copy link

kjavaherpour commented Jul 18, 2022

@patmmccann Hi Patrick, looks like the test is expecting url encoded strings, while the new function decodes them. We can update the tests to use the decoded strings, or you can (or we can encode them)? Not sure who should, since this is your PR.

    function getKrgCrbOldStyle() {
      return '%7B%22v%22%3A%22eyJzeW5jSWRzIjp7IjIiOiI4MmZhMjU1NS01OTY5LTQ2MTQtYjRjZS00ZGNmMTA4MGU5ZjkiLCIxNiI6IlZveElrOEFvSnowQUFFZENleUFBQUFDMiY1MDIiLCIyMyI6ImQyYTg1NWE1LTFiMWMtNDMwMC05NDBlLWE3MDhmYTFmMWJkZSIsIjI0IjoiVm94SWs4QW9KejBBQUVkQ2V5QUFBQUMyJjUwMiIsIjI1IjoiNWVlMjQxMzgtNWUwMy00YjlkLWE5NTMtMzhlODMzZjI4NDlmIiwiMl84MCI6ImQyYTg1NWE1LTFiMWMtNDMwMC05NDBlLWE3MDhmYTFmMWJkZSIsIjJfOTMiOiI1ZWUyNDEzOC01ZTAzLTRiOWQtYTk1My0zOGU4MzNmMjg0OWYifSwibGV4SWQiOiI1ZjEwODgzMS0zMDJkLTExZTctYmY2Yi00NTk1YWNkM2JmNmMiLCJjbGllbnRJZCI6IjI0MTBkOGYyLWMxMTEtNDgxMS04OGE1LTdiNWUxOTBlNDc1ZiIsIm9wdE91dCI6ZmFsc2UsImV4cGlyZVRpbWUiOjE0OTc0NDkzODI2NjgsImxhc3RTeW5jZWRBdCI6MTQ5NzM2Mjk3OTAxMn0=%22%7D';
    }

this could be decoded, for example. There are a few other functions that do the same thing (old style). Previously the field rawCRB was not decoding the cookies: rawCRB: spec._readCookie('krg_crb') while the new function automatically decodes for us:

return m ? decodeURIComponent(m[2]) : null;

@jsadwith
Copy link
Contributor

@patmmccann - apologies for the delay - I'm now back from PTO and able to help out. We are good with the suggested changes once the test issue that Kamron mentioned is resolved.

@patmmccann
Copy link
Collaborator Author

patmmccann commented Jul 21, 2022

@kjavaherpour @jsadwith thanks so much! Could you just pr to nodoccookie with your changes to this, or you could do your own pr to master and I'll remove changes to Kargo from this PR

@jsadwith
Copy link
Contributor

@patmmccann here you go: #8727

@patmmccann patmmccann marked this pull request as ready for review July 21, 2022 21:04
@patmmccann
Copy link
Collaborator Author

Thanks so much!

@patmmccann patmmccann requested a review from ChrisHuie July 22, 2022 14:08
@patmmccann patmmccann assigned patmmccann and ChrisHuie and unassigned patmmccann Jul 22, 2022
@patmmccann patmmccann merged commit 6536b35 into master Jul 22, 2022
@patmmccann patmmccann deleted the nodoccookie branch July 22, 2022 17:00
espen-j pushed a commit to c-wire/Prebid.js that referenced this pull request Jul 25, 2022
* Update sspBCBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter_spec.js

* Update kargoBidAdapter.js

* Update sspBCBidAdapter.js

* Update sspBCBidAdapter.js

* Update kargoBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Kargo: URL-decoding test strings (prebid#8727)

Co-authored-by: Jeremy Sadwith <jeremy@kargo.com>
ahmadlob referenced this pull request in taboola/Prebid.js Jul 27, 2022
* Update sspBCBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter_spec.js

* Update kargoBidAdapter.js

* Update sspBCBidAdapter.js

* Update sspBCBidAdapter.js

* Update kargoBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Kargo: URL-decoding test strings (#8727)

Co-authored-by: Jeremy Sadwith <jeremy@kargo.com>
ccorbo pushed a commit to ccorbo/Prebid.js that referenced this pull request Jul 27, 2022
* Update sspBCBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter_spec.js

* Update kargoBidAdapter.js

* Update sspBCBidAdapter.js

* Update sspBCBidAdapter.js

* Update kargoBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Kargo: URL-decoding test strings (prebid#8727)

Co-authored-by: Jeremy Sadwith <jeremy@kargo.com>
JacobKlein26 pushed a commit to nextmillenniummedia/Prebid.js that referenced this pull request Feb 9, 2023
* Update sspBCBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter_spec.js

* Update kargoBidAdapter.js

* Update sspBCBidAdapter.js

* Update sspBCBidAdapter.js

* Update kargoBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Kargo: URL-decoding test strings (prebid#8727)

Co-authored-by: Jeremy Sadwith <jeremy@kargo.com>
jorgeluisrocha pushed a commit to jwplayer/Prebid.js that referenced this pull request May 23, 2023
* Update sspBCBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Update fintezaAnalyticsAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter.js

* Update kargoBidAdapter_spec.js

* Update kargoBidAdapter.js

* Update sspBCBidAdapter.js

* Update sspBCBidAdapter.js

* Update kargoBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update pubwiseAnalyticsAdapter.js

* Update insticatorBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update invibesBidAdapter.js

* Update insticatorBidAdapter_spec.js

* Update widespaceBidAdapter.js

* Update kargoBidAdapter.js

* Kargo: URL-decoding test strings (prebid#8727)

Co-authored-by: Jeremy Sadwith <jeremy@kargo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Various bidders: bypass of storage manager rules violation
5 participants