-
Notifications
You must be signed in to change notification settings - Fork 535
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: don't update session on GET with token already set #2483
fix: don't update session on GET with token already set #2483
Conversation
17ec627
to
e56daf8
Compare
Not sure why those tests are failing, seems completely unrelated to me |
@chrispatmore I've restarted the jobs |
Still not sure about the failure @tsegismont ? |
e56daf8
to
4e30296
Compare
Signed-off-by: Chris Patmore <chrism.patmore@btinternet.com>
4e30296
to
6f0dd29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @chrispatmore
@chrispatmore #2447 has milestone is 4.5.0 but the PR which fixed has milestone 5.0.0. Has the fix been backported to the 4.x branch? |
@chrispatmore can you provide the same PR for the 4.x branch ? |
Sure I can do that. Edit: The 4.x branch is a reasonable amount further behind than I was expecting, I assume you don't want me to pull in things from other changes as much as possible? |
Right |
Motivation:
The updated CSRF handler would attempt to set the token into the session even when a new one was
not generated, this opened a timing issue where a GET request that started during / before a POST
but ended after would revert the changed token, leaving the user stuck
Contributes To: #2447