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

Special characters support in extra credentials. #125

Closed
ddl-joyce-zhao opened this issue Sep 26, 2024 · 0 comments · Fixed by #127
Closed

Special characters support in extra credentials. #125

ddl-joyce-zhao opened this issue Sep 26, 2024 · 0 comments · Fixed by #127

Comments

@ddl-joyce-zhao
Copy link

Query fails if there are following special characters in the extra credentials.

= Message: trino: query failed (400 Bad Request): "Invalid X-Trino-Extra-Credential header"

% Message: trino: query failed (400 Bad Request): "Invalid X-Trino-Extra-Credential header: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - Error at index 1 in: "do""

  • Message: trino: query failed (200 OK): "io.trino.spi.TrinoException: [10]: authentication failed: Detailed info for this error can be found with correlation ID '6BDD97D810581241A472BA8974EEF6D9'"

, Message: trino: query failed (400 Bad Request): "Invalid X-Trino-Extra-Credential header"

These special characters are commonly used in passwords and should be supported.

According to the comment here trinodb/trino#21751 (comment) Each client should be responsible for url encoding the values and Java client has already done that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant