Project

General

Profile

Actions

Defect #12229

closed

Database connection fails with % in password

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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

Actions #1

Updated by Jean-Philippe Lang about 12 years ago

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

Actions #2

Updated by Daniel Felix about 12 years ago

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.

Actions #3

Updated by Jean-Philippe Lang about 12 years ago

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

Actions #4

Updated by Daniel Felix about 12 years ago

Thank you!

Just tested it!

Actions

Also available in: Atom PDF