-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The hydra can't handle the DB username with "@" character #1460
Comments
Does |
Nope |
Can you confirm that connecting to
? |
It seems like ParseDSN doesn't care about URL formatting (username and info should be url encoded...) but simply uses the "last" |
The below update works fine. BTW: The https://github.com/ory/sqlcon is archived. `- userinfo = url.QueryEscape(userinfo) + ":" + url.QueryEscape(password)
|
It moved to: https://github.com/ory/x/tree/master/sqlcon
Next couple of days are busy but I have time to review and merge PRs if you create one! |
Sure, I will try to create a PR ASAP. Thank you in advance. |
I have created the PR. Could you please help to review it? |
When will this feature be released? We are going to use it in our product. |
Describe the bug
If I set the user name of DB with "@" char, the hydra can't connect to the DB.
When we create the mysql db in Azure, the user name always contains "@" character.
The DSN example is as following:
DSN=mysql://sa@test.mysql.database.azure.com:MyPassword@(127.0.0.1:3306)/hydra
According to my investigation, the issue caused by below function in sqlcon lib.
This QueryEscape will replace "@" to "%40".
The text was updated successfully, but these errors were encountered: