Skip to content

Fix swallowed encoder error in PrepareCookieForWrite#4841

Open
alibazlamit wants to merge 1 commit into
prebid:masterfrom
alibazlamit:fix/usersync-propagate-encoder-error
Open

Fix swallowed encoder error in PrepareCookieForWrite#4841
alibazlamit wants to merge 1 commit into
prebid:masterfrom
alibazlamit:fix/usersync-propagate-encoder-error

Conversation

@alibazlamit

@alibazlamit alibazlamit commented Jul 1, 2026

Copy link
Copy Markdown

PrepareCookieForWrite returns nil when encoder.Encode fails, so callers get a partial/empty cookie string and treat the write as successful. The ejector error in the same function is already propagated; this aligns the encode branch with that behavior. Adds a regression test asserting the error surfaces.

Fixes #4843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PrepareCookieForWrite swallows encoder.Encode error and reports success

1 participant