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

Fix: setuid endpoint sets cookie when both GDPR and GPP are set #3165

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

ashishshinde-pubm
Copy link
Contributor

@ashishshinde-pubm ashishshinde-pubm commented Sep 29, 2023

Possible fix for - #3166

@bsardo bsardo self-assigned this Oct 30, 2023
w.Write([]byte("Warning: " + err.Error()))
w.Header().Add("Warning", err.Error())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd rather not add a warning as a header. Instead, I think we should skip sending a warning in the response altogether. We can simply delete this line which should cause the endpoint to set the cookie when both GDPR and GPP are set.

I don't think this is necessarily required but you could explore adding a metric to surface the warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as per the suggestion, removed the line

@bsardo bsardo changed the title Fix: setuid endpoint does not set 'uids' cookie when both GDPR and GPP is set in the request Fix: setuid endpoint should set cookie when both GDPR and GPP are set Nov 27, 2023
@bsardo bsardo changed the title Fix: setuid endpoint should set cookie when both GDPR and GPP are set Fix: setuid endpoint sets cookie when both GDPR and GPP are set Nov 27, 2023
bsardo
bsardo previously approved these changes Nov 27, 2023
},
{
uri: "/setuid?f=i&bidder=pubmatic&uid=123&gpp_sid=2,4&gpp=DBABMA~CPXxRfAPXxRfAAfKABENB-CgAAAAAAAAAAYgAAAAAAAA" +
"gdpr=1&gdpr_consent=BONciguONcjGKADACHENAOLS1rAHDAFAAEAASABQAMwAeACEAFw",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean "&gdpr=1 at the beginning of the line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, added missing & separator

@bsardo bsardo merged commit e2da446 into prebid:master Dec 1, 2023
3 checks passed
SuprPhatAnon pushed a commit to GiftConnect/prebid-server that referenced this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants