Skip to content

Conversation

MatTheCat
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #50758
License MIT
Doc PR N/A

When exiting impersonation, the impersonator get refreshed in the original token. Problem is, the refreshed user can be a proxy if it is referenced by the impersonated. In that case, all its properties (except identifiers) will be null when it is unserialised by the ContextListener.

The refreshed user data will be needed anyways, so loading proxies in EntityUserProvider::refreshUser should not impact performance.

@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants