-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
MetaDatabase password Connection string is not encoded (special char escaping) (sqlalchemy uri) #25501
Comments
Yeah i m aware of that, and i tried multiple ways to encode the password (escape all special chars), didn't work |
Related #26029 superset/superset/migrations/env.py Line 45 in 890bf59
As a workaround we are using |
Thank you ! I ll test it separately then ! |
Thanks for sharing that fix @ramki88 ! If you see a way to implement an improvement in the Superset codebase, feel free to send a pull request. |
Looks like we're still trying to get this PR across the line. Hopefully it's very close! Thanks @ramki88 |
BTW, not sure, but there may be some crossover with this issue somewhere along the line. |
I am upgrading superset from version 2.0.1 to version 3.0.0 (same issue arises when tested with version 2.1.1)
I m using helm chart 0.10.9 and postgresql is used as metadata database.
When deploying with default passwords (specially the database password), everything works fine.
But when i use a db password containing special character "@" (like p@ssword), deployment ends with error.
It s unable to connect to the database because it's treating the after "@" as the starting of the db hostname.
The same password was used in version 2.0.1 and its working fine
How to reproduce the bug
Expected results
Database creation and initialization successful, deployment running without errors
Actual results
Error at DB creation and initialization step
( i think Database connection string is not url encoding or escaping the special characters in the password)
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
3.0.0
and2.1.1
3.9
default
Checklist
Yes i did.
Additional context
I went through the commits related to sqlalchemy on superset and i think the problem started after upgrading from sqlalchemy 1.3 to 1.4,
There was so many changes in database uri functions and how it's treating the uri before passing it to engine (postgresql in my case) #19890
The text was updated successfully, but these errors were encountered: