Skip to content

[Security] Fix context listener misbehaviour #20401

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

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ protected function refreshUser(TokenInterface $token)

return $token;
} catch (UnsupportedUserException $e) {
// let's try the next user provider
continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

why drop the comment (which is accurate) and add a continue (which is useless) ?

Copy link
Contributor Author

@Einenlum Einenlum Nov 3, 2016

Choose a reason for hiding this comment

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

@Nek- I could also let it as it. But continue seems more appropriate to me (for now we just want to continue the loop and not go further). But just a matter of taste.

} catch (UsernameNotFoundException $e) {
if (null !== $this->logger) {
$this->logger->warning('Username could not be found in the selected user provider.', array('username' => $e->getUsername(), 'provider' => get_class($provider)));
}

return;
continue;
}
}

Expand Down