-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Prebid Server cookie sync race condition #3265
Comments
Agree this is a bug. We can address in Q1 unless someone want's to work on it now. |
jsnellbaker
added a commit
that referenced
this issue
Dec 18, 2018
1 task
mkendall07
pushed a commit
that referenced
this issue
Jan 3, 2019
olafbuitelaar
pushed a commit
to olafbuitelaar/Prebid.js
that referenced
this issue
Jan 3, 2019
* Fix prebid#3265 - pbs cookie sync race condition * add/update jsdoc comments
amuraco
pushed a commit
to amuraco/Prebid.js
that referenced
this issue
Jan 28, 2019
* Fix prebid#3265 - pbs cookie sync race condition * add/update jsdoc comments
ghost
pushed a commit
to devunrulymedia/Prebid.js
that referenced
this issue
Jan 30, 2019
* Fix prebid#3265 - pbs cookie sync race condition * add/update jsdoc comments
pedrolopezmrf
pushed a commit
to Marfeel/Prebid.js
that referenced
this issue
Mar 18, 2019
* Fix prebid#3265 - pbs cookie sync race condition * add/update jsdoc comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type of issue
Bug
Description
There's a race condition in the
prebidServerBidAdapter
cookie sync code: https://github.com/prebid/Prebid.js/blob/master/modules/prebidServerBidAdapter/index.js#L119Prebid Server's /setuid endpoint behaves like so:
Suppose two syncs get executed, and the second one gets sent before the first one returns. The same Cookie data will be sent to both. Both
/setuid
calls will respond withSet-Cookie
headers, but neither one will contain the other one's data. After both execute, the final cookie will only have the updated ID from the last/setuid
response to return.Steps to reproduce
Since this is a race condition, it's inherently impossible to reproduce reliably. To increase the chances of reproducing it, run an auction with all the Prebid Server bidders. Use a
baset64
decoder to decode the PBS cookie, and see whether all the bidders have syncs there.In practice, there's probably not much value in reproducing it. To fix it, just do your best to avoid running two Prebid Server cookie syncs at the same time.
The text was updated successfully, but these errors were encountered: