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] more defensive PasswordMigratingListener#39263

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
derrabus merged 1 commit intosymfony:5.2fromromaricdrigon:fix-39262
Dec 1, 2020

Conversation

@romaricdrigon
Copy link
Contributor

QA
Branch?5.2 (bug not here in 5.1.x)
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#39262
LicenseMIT
Doc PR/

This proposed fix makesPasswordMigratingListener code more robust. It should handle Passports which does not contain anUserBadge, as it is not enforced byUserPassportInterface. Developers should be free to implement different passports with different badges (as I did on my own project), and it shouldn't lead to a crash inframeworkland.

The issue became apparent in 5.2.0 exactly, asPasswordMigratingListener is now called in (almost) every login, asPasswordUpgradeBadge is automatically added.

@derrabus
Copy link
Member

Can you add this case toPasswordMigratingListenerTest? We should make sure this does not break again.

wouterj reacted with thumbs up emoji

@romaricdrigon
Copy link
ContributorAuthor

Sure, I just added a test case. I struggled a bit with PHPUnit stubbing (usually I'm using anonymous classes), please tell me if that looks good to you and consistent with the rest of the codebase.

@romaricdrigonromaricdrigon changed the base branch from5.x to5.2December 1, 2020 11:11
@derrabusderrabus changed the title[Security] fix #39262, more defensive PasswordMigratingListener[Security] more defensive PasswordMigratingListenerDec 1, 2020
@derrabus
Copy link
Member

Thank you@romaricdrigon.

@derrabusderrabus merged commit42f440e intosymfony:5.2Dec 1, 2020
@romaricdrigonromaricdrigon deleted the fix-39262 branchDecember 1, 2020 12:18
@fabpotfabpot mentioned this pull requestDec 18, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj approved these changes

@derrabusderrabusderrabus approved these changes

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Security][5.2.0 only] Call to a member function getUserLoader() on null

4 participants

@romaricdrigon@derrabus@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp