DB password special character bug
See original GitHub issueWhen a special character ‘@’ exists in the sqlalchemy URI it is not store correctly in superset metastore.
example URI: postgresql://<user>:123@456@<hostname>:5432/<db>
Expected results
escape the special character correctly after saving the Database entry
Actual results
what actually happens.
Screenshots
If applicable, add screenshots to help explain your problem.
How to reproduce the bug
- Go to Sources -> Datasources -> Create New
- Construct the URI and make sure the password has ‘@’ character.
- Test Connection (Success)
- Save Datasource
- Open the newly created datasource
- Test Connection (Failed)
In this stage if you replace the password part (‘XXXXXXXXXX’) in the URI with the actual password its working correctly
Environment
- superset version:
0.37.0rc1
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
DB password special character bug · Issue #10483 - GitHub
When a special character '@' exists in the sqlalchemy URI it is not store correctly in superset metastore. example URI:
Read more >Cannot use special characters in the database password - Jira
Bug JRASERVER-66755 - Regression: Cannot use special characters in the ... JIRA is unable to connect database using password with special character.
Read more >Special characters in database password are not escaped ...
On Windows platforms, the database client command line is composed as a string, but no escaping whatsoever is performed on the parameters.
Read more >MySQL Workbench 6.3 passwords with special characters fail
Bug #87840, MySQL Workbench 6.3 passwords with special characters fail. Submitted: 22 Sep 2017 13:17, Modified: 25 Sep 2017 12:12.
Read more >Special character when changing password in sql plus
I get a ORA-00922 whenever I try to change a user's password to contain ! in it. See below. Do I have to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Side note: I had a recent conversation with one of our designers and he mentioned the idea of moving away from URIs and having a more complete form with different fields for each component of the URI. Maybe an “advanced” option let’s you use the URI if you prefer. Then the UI would quote things for you.
I was able to make it work via replacing the special character with url encode value.
example: “pass@word” should be changed to “pass%40word” in SQLALCHEMY URI* field.