Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] Handle concurency in Csrf DoctrineTokenProvider#41910

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:5.3fromjderusse:persistent-csrf-concurentcy
Jun 30, 2021

Conversation

@jderusse
Copy link
Member

@jderussejderusse commentedJun 30, 2021
edited
Loading

QA
Branch?5.3
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

When thePersistentRememberMeHandler class process aRememberMe cookie older than 1 minute it can tells thetokenVerifier to update it. This method performs adelete then aninsert. This could be an issue with concurrent requests leading toUniqueConstraintViolationException.

This PR wrap the delete/insert in a transaction to prevent this.

@carsonbotcarsonbot added this to the5.3 milestoneJun 30, 2021
@carsonbotcarsonbot changed the titleHandle concurency in Csrf DoctrineTokenProvider[Security] Handle concurency in Csrf DoctrineTokenProviderJun 30, 2021
@fabpot
Copy link
Member

Thank you@jderusse.

@fabpotfabpot merged commit2888e40 intosymfony:5.3Jun 30, 2021
@fabpotfabpot mentioned this pull requestJun 30, 2021
fabpot added a commit that referenced this pull requestJul 3, 2021
This PR was merged into the 5.3 branch.Discussion----------Rethrow exception in `DoctrineTokenProvider`| Q             | A| ------------- | ---| Branch?       | 5.3| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -Introduced in#41910Commits-------246e679 rethrow caught exception
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

@wouterjwouterjAwaiting requested review from wouterjwouterj is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

3 participants

@jderusse@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp