Project

General

Profile

Actions

Defect #12229

closed

Database connection fails with % in password

Defect #12229: Database connection fails with % in password

Added by Daniel Felix about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Resolution:
Fixed
Affected version:

Description

Hi,

the database connection fails, if % is defined inside the password. Maybe this isn't automatically escaped?

Best regards,
Daniel

Updated by Jean-Philippe Lang about 14 years ago Actions #1

Do you use double quotes to wrap your password in database.yml?

Updated by Daniel Felix about 14 years ago Actions #2

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.

Updated by Jean-Philippe Lang about 14 years ago Actions #3

  • 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.

Updated by Daniel Felix about 14 years ago Actions #4

Thank you!

Just tested it!

Actions

Also available in: PDF Atom