Defect #12229
closed
Database connection fails with % in password
Added by Daniel Felix about 12 years ago.
Updated about 12 years ago.
Description
Hi,
the database connection fails, if % is defined inside the password. Maybe this isn't automatically escaped?
Best regards,
Daniel
Do you use double quotes to wrap your password in database.yml?
No i used the example config and changed the password.
For Example:
production:
password: test%test /* fails */
production:
password: testtest /* works */
Maybe those do quotes should be added in the example, like in the postgres example.
- Status changed from New to Closed
- Resolution set to Fixed
Yes, that should work with double quotes:
password: "test%test"
I've updated the configuration example in r10729.
Thank you!
Just tested it!
Also available in: Atom
PDF