Skip to content
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

Fix EZP-23971: If a user is removed while logged in, session for that user will throw an exception #12

Merged
merged 1 commit into from Feb 13, 2015

Conversation

lolautruche
Copy link
Contributor

https://jira.ez.no/browse/EZP-23971

Relates to ezsystems/ezpublish-kernel#1188

When in legacy mode, authentication is completely delegated to the legacy kernel. However currently logged in user is also injected in the Repository to make it usable with appropriate permissions.

Problem is that when the user is removed while a session for this user is still open, Symfony stack still tries to inject it in the repository, failing with a nasty exception.
This PR fixes the issue.

… user will throw an exception

> https://jira.ez.no/browse/EZP-23971

When in legacy mode, authentication is completely delegated to the
legacy kernel. However currently logged in user is also injected in the
Repository to make it usable with appropriate permissions.

Problem is that when the user is removed while a session for this user
is still open, Symfony stack still tries to inject it in the repository,
failing with a nasty exception.
This PR fixes the issue.
@andrerom
Copy link
Contributor

+1

@glye
Copy link
Member

glye commented Feb 13, 2015

+1 (Seems to me I wasn't all that far off, but devils, details, etc.)

@lolautruche lolautruche merged commit eec3356 into master Feb 13, 2015
@lolautruche lolautruche deleted the EZP-23971_userLoggedInAndRemoved branch February 13, 2015 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants