question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DB password special character bug

See original GitHub issue

When 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

  1. Go to Sources -> Datasources -> Create New
  2. Construct the URI and make sure the password has ‘@’ character.
  3. Test Connection (Success)
  4. Save Datasource
  5. Open the newly created datasource
  6. 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:closed
  • Created 3 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mistercrunchcommented, Aug 7, 2020

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.

2reactions
kaykumarcommented, Nov 16, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found