Skip to content

Ignore Set-Cookie header from Commons in worker#358

Merged
don-vip merged 1 commit intomasterfrom
fix/worker-cookie-policy
Apr 2, 2026
Merged

Ignore Set-Cookie header from Commons in worker#358
don-vip merged 1 commit intomasterfrom
fix/worker-cookie-policy

Conversation

@Amdrel
Copy link
Copy Markdown
Collaborator

@Amdrel Amdrel commented Apr 2, 2026

A configuration changed introduced in T417833 results in cookies being saved in our workers. This breaks session isolation since we don't clear cookies when tasks complete as they're saved in-memory so long as the process remains running.

We don't need these cookies so just ignore them.

A configuration changed introduced in T417833 results in cookies being
saved in our workers. This breaks session isolation since we don't clear
cookies when tasks complete as they're saved in-memory so long as the
process remains running.

We don't need these cookies so just ignore them.
@Amdrel Amdrel requested a review from don-vip April 2, 2026 22:08
@Amdrel
Copy link
Copy Markdown
Collaborator Author

Amdrel commented Apr 2, 2026

Relevant issue: #356

I was able to reproduce this with a local wiki farm with similar configurations applied and two different accounts using v2c. Blocking cookies didn't break V2C for me and it resolved the authentication error.

@don-vip don-vip merged commit f481dbb into master Apr 2, 2026
5 checks passed
@don-vip
Copy link
Copy Markdown
Collaborator

don-vip commented Apr 2, 2026

Nice! Not an easy issue to troubleshoot I guess.

@don-vip don-vip deleted the fix/worker-cookie-policy branch April 2, 2026 22:40
@Amdrel
Copy link
Copy Markdown
Collaborator Author

Amdrel commented Apr 2, 2026

The fix seems to have worked. I restarted 6 failed tasks and they didn't throw the OAuth error. Only 3/6 passed but that's because 2 were manually uploaded via the upload wizard later and 1 has a blacklisted title.

I was lucky to come across that ticket by chance.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants