Skip to content
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

Special characters in password causing login failure #782

Open
sagar-shah-uipath opened this issue May 10, 2023 · 1 comment
Open

Special characters in password causing login failure #782

sagar-shah-uipath opened this issue May 10, 2023 · 1 comment

Comments

@sagar-shah-uipath
Copy link

Describe the bug
When there are special characters in password in connection string, It fails with login failed. We do use many special characters in password, not sure which exact character is causing failures

To Reproduce
Try using password like @-(^-d:ec1/$P;~L=,#''e:L;8Nd*{)o2Xcj=~R);U-[5c/7z in connection string

Expected behavior
Login should pass because password is correct

Further technical details

SQL Server version: SQL Server 2017
Operating system: RHEL

@elsgaard
Copy link

elsgaard commented May 25, 2023

Yeah i have noticed the same problem. It seems to be caused by the function: splitConnectionStringURL which uses the url.Parse() from net/url to parse the dsn. url.Parse() expects the browser to correctly escape characters.

Workaround:
The workaround (that is working for me), is to url-encode the password like: 1234#!456 is encoded to: 123%23%21456
Now the DB connection is created with the correct password: 1234#!456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants