[Cache] The RedisTrait
DSN parsing doesn't urldecode
the params
#52420
Labels
RedisTrait
DSN parsing doesn't urldecode
the params
#52420
Symfony version(s) affected
5.4
Description
The RedisTrait doesn't urldecode the username/password/host when creating the connection from the dsn. In most other components, params are decoded (in the Mailer for example). That makes it hard to use special chars.
It would be easy enough to fix this but I'm affraid this would impact users that have character sequences that match url-encoded signs (for instance a raw password
password%3D
would be converted topassword=
).Is this something we could fit in 7.0 ?
How to reproduce
Use redis with a password containing à
@
char.Using no encoding the parsing will be wrong
redis://user:p@ssword@localhost
If encoded the auth will fail
redis://user:p%40assword@localhost
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: