Skip to content

Impersonation exit logs out user (followup) #47837

Closed
@simonsolutions

Description

@simonsolutions

Symfony version(s) affected

6.1.5

Description

As already described in #47356 I looked further into the problem and found out that it's about the user entity. With an empty project the impersonation and exiting works like expected. but with the fields of the user entity extended the error occurs also in the demo project.

How to reproduce

https://github.com/simonsolutions/impersonatebug

connect to database
initiale app (composer)
load fixtures (add users to database)
login to conference controller with "admin" and "start1"
impersonate user1
exit impersonation and then the error appears

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions