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] Fix missing BC layer for AbstractGuardAuthenticator::getCredentials()#24624

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
nicolas-grekas merged 1 commit intosymfony:3.4fromchalasr:guard-bc-layer
Oct 24, 2017

Conversation

@chalasr
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

If a guard authenticator extendsAbstractGuardAuthenticator and returnsnull fromgetCredentials(), an\UnexpectedValueException is thrown when upgrading to 3.4 because the abstract already implements the new interface.
This triggers a deprecation notice instead.

@stof
Copy link
Member

Do we have a deprecation message when not implementing the new interface btw ? I don't see it in this code.

@chalasr
Copy link
MemberAuthor

Copy link
Member

@weaverryanweaverryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Very tricky :)

@nicolas-grekas
Copy link
Member

Thank you@chalasr.

@nicolas-grekasnicolas-grekas merged commitb6bb84b intosymfony:3.4Oct 24, 2017
nicolas-grekas added a commit that referenced this pull requestOct 24, 2017
…ator::getCredentials() (chalasr)This PR was merged into the 3.4 branch.Discussion----------[Security] Fix missing BC layer for AbstractGuardAuthenticator::getCredentials()| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aIf a guard authenticator extends `AbstractGuardAuthenticator` and returns `null` from `getCredentials()`, an `\UnexpectedValueException` is thrown when upgrading to 3.4 because the abstract already implements the new interface.This triggers a deprecation notice instead.Commits-------b6bb84b [Security] Fix BC layer for AbstractGuardAuthenticator subclasses
@chalasrchalasr deleted the guard-bc-layer branchOctober 24, 2017 13:42
This was referencedOct 30, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@weaverryanweaverryanweaverryan approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

6 participants

@chalasr@stof@nicolas-grekas@weaverryan@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp