You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "ramki88 (via GitHub)" <gi...@apache.org> on 2023/11/20 12:31:19 UTC

[I] URL encoded passwords are getting decoded in env.py [superset]

ramki88 opened a new issue, #26029:
URL: https://github.com/apache/superset/issues/26029

   https://github.com/apache/superset/blob/890bf59ce4d820330fa545c33a6082e203442bc5/superset/migrations/env.py#L45
   
   As suggested in https://github.com/psycopg/psycopg2/discussions/1546#discussion-4866365 we are using ```urllib.parse.quote(DB_PASSWORD)``` as the password contains special characters. But in the above line it gets decoded. Hence the host name is not getting resolved as part of the password is taken as host. Currently as a workaround line 45 is replaced with ```decoded_uri = DATABASE_URI.replace("%", "%%")```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org