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

Oracle: update DSN construction to support special characters in user/password. #4659

Merged
merged 3 commits into from
Feb 27, 2020
Merged

Oracle: update DSN construction to support special characters in user/password. #4659

merged 3 commits into from
Feb 27, 2020

Conversation

juanvasquezreyes
Copy link
Contributor

@juanvasquezreyes juanvasquezreyes commented Feb 18, 2020

The reason I propose this change is to fix an issue when oracle password has an @
example of connection string: user/p@ssword@host

What type of PR is this? (check all applicable)

  • Bug Fix

Description

Currently oracle.py is building a query string, but if the DB password has an @ it doesn't work cause it build a connection string like: user/p@ssword@host

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

The reason I propose this change is to fix an issue when oracle password has an @
example of connection string: user/p@ssword@host
Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please see comment.

self.configuration["host"],
self.configuration["port"],
service_name=self.configuration["servicename"])
connection = cx_Oracle.connect(user=self.configuration["user"],password=self.configuration["password"], dsn=dsn_t)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but this is make the creation of connection_string in the constructor redundant. Let's remove the dead code there as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just updated it, thanks

Copy link
Member

@arikfr arikfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@arikfr arikfr changed the title Update oracle.py Oracle: update DSN construction to support special characters in user/password. Feb 27, 2020
@arikfr arikfr merged commit 5d533a3 into getredash:master Feb 27, 2020
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

Successfully merging this pull request may close these issues.

2 participants