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

[BUG] Tableau connector does not URI encode username and password - special characters in valid password result in error #365

Open
JesseKirschner opened this issue Jul 5, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@JesseKirschner
Copy link

JesseKirschner commented Jul 5, 2022

Environment

  • DocumentDB JDBC driver version: 1.14.0.0
  • DocumentDB server version: docdb 4.0.0
  • OS: Windows 10 64-bit
  • BI Tool or client name: Tableau Desktop
  • BI Tool or client version: 2021.4.2
  • Java version (if known): -

Problem Description

  1. Steps to reproduce:
    (within ec2 instance in VPC!!)
    Download jdbc and taco.
    Place files in designated folders.
    Open up tableau.
    Fill in wizard.
    Try to connect.

  2. Expected behaviour:
    A successful connection with documentDB

  3. Actual behaviour:
    No successful connection with documentDB

  4. Error message/stack trace:
    Invalid username or password.
    Error Code: 28911C50
    Invalid username or password or user is not authorized on database 'paydayService'. Please check your settings. Authorization failed for user 'masterUser' on database 'admin' with mechanism 'SCRAM-SHA-1'. Please check username, password, database and authorization for the user.
    Invalid username or password.
    Connector Class: documentdbjdbc, Version: 1.14.0.0

  5. Any other details that can be helpful:
    Tried to connect by using studio 3T. Was successful.


Screenshots

  • If applicable, add screenshots to help explain your problem.

JDBC log

  • Add related JDBC log entries here.
    "e-code":"0x28911C50","e-source":"Client","e-status-code":"16","error-source":"Client","exception-type":"BadPassword","grpc-status-code":"16","msg":""Invalid username or password or user is not authorized on database 'paydayService'. Please check your settings. Authorization failed for user 'masterUser' on database 'admin' with mechanism 'SCRAM-SHA-1'. Please check username, password, database and authorization for the user.\n"","type":"ConnectivityException"},"sponsor":"Olh5xmO/UJAIAuF7eEz/RE","type":"end"}
@JesseKirschner JesseKirschner added the bug Something isn't working label Jul 5, 2022
@JesseKirschner
Copy link
Author

Solution was removing special characters in the password.

@birschick-bq
Copy link
Contributor

Hi @JesseKirschner

Thanks for reporting this issue.

Just for clarity, can you give an example of a character that is problematic?

@JesseKirschner
Copy link
Author

Hi @birschick-bq,

I'm not quite sure which character created the problem, but I can list all special characters that were part of the password:

#;.):`>;~}

@birschick-bq
Copy link
Contributor

birschick-bq commented Jul 5, 2022

@JesseKirschner
Normally, we expect the connection string to have the user and password encoded before we get the connection string.

But in the case of using Tableau, it is reasonable for the user to expect that the connector will encode the user name and password from the raw format entered in the connection dialog.

We will investigate a solution to encode the special characters in the Tableau connector (TACO) so that users don't have to encode the user name and password on the connection dialog.

@andiemontoyeah andiemontoyeah changed the title [BUG] Can not connect to documentDB in VPC [BUG] Tableau connector does not URI encode username and password - special characters in valid password result in error Jul 22, 2022
@dani171217
Copy link

Hello,

I am experiencing the same error when connecting to Document DB. However, due to security policies in the organization, I cannot exclude special characters.

Is there any other solution you can recommend?
Have you managed to identify the special characters that affect the connection?

I appreciate your help in advance.

Greetings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants