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 switch user _exit without having current token#22732

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:2.7fromdmaicher:fix_exit_user_anonymously
Jun 19, 2017

Conversation

@dmaicher
Copy link
Contributor

@dmaicherdmaicher commentedMay 17, 2017
edited
Loading

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#22729
LicenseMIT
Doc PR-

Attempting to_exit from a switched user caused an error when not having any token in the storage (for example happens when not logged in + disallowing anonymous users on that firewall):

[1] Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to Symfony\Component\Security\Http\Firewall\SwitchUserListener::getOriginalToken() must be an instance of Symfony\Component\Security\Core\Authentication\Token\TokenInterface, null given, called in symfony/symfony/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php on line 164

yceruto and apfelbox reacted with thumbs up emoji
@nicolas-grekasnicolas-grekas added this to the2.7 milestoneMay 18, 2017
@dmaicher
Copy link
ContributorAuthor

@xabbuh@nicolas-grekas what do you think? 😉

@fabpot
Copy link
Member

Thank you@dmaicher.

@fabpotfabpot merged commit16da686 intosymfony:2.7Jun 19, 2017
fabpot added a commit that referenced this pull requestJun 19, 2017
…ken (dmaicher)This PR was merged into the 2.7 branch.Discussion----------[Security] fix switch user _exit without having current token| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#22729| License       | MIT| Doc PR        | -Attempting to `_exit` from a switched user caused an error when not having any token in the storage (for example happens when not logged in + disallowing anonymous users on that firewall):`[1] Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to Symfony\Component\Security\Http\Firewall\SwitchUserListener::getOriginalToken()        must be an instance of Symfony\Component\Security\Core\Authentication\Token\TokenInterface, null given, called in        symfony/symfony/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php on line 164`Commits-------16da686 [Security] fix switch user _exit without having current token
This was referencedJul 3, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

5 participants

@dmaicher@fabpot@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp