I probably found a bug in the identity impersonalization part of the security package.
You are trying to connect with $nonExistentUsername randomly generated, but if the username is a UUID and the database is PostgreSql, this causes an error : SQLSTATE[22P02]: Invalid text representation
because the string you randomly generate is not a valid UUID and cannot be converted to UUID…
For trying, i disable the line 160 of SwitchUserListener.php and all works fine…
But, need a more robust solution 🙂
Source: Symfony Questions
Was this helpful?
0 / 0