Reamer commented on code in PR #4838:
URL: https://github.com/apache/zeppelin/pull/4838#discussion_r1812324665
##########
jdbc/src/main/java/org/apache/zeppelin/jdbc/JDBCInterpreter.java:
##########
@@ -587,10 +589,18 @@ public Connection getConnection(InterpreterContext
context)
}
private void validateConnectionUrl(String url) {
- if (containsIgnoreCase(url, ALLOW_LOAD_LOCAL_IN_FILE_NAME) ||
- containsIgnoreCase(url, AUTO_DESERIALIZE) ||
- containsIgnoreCase(url, ALLOW_LOCAL_IN_FILE_NAME) ||
- containsIgnoreCase(url, ALLOW_URL_IN_LOCAL_IN_FILE_NAME)) {
+ String decodedUrl;
+ try {
+ decodedUrl = URLDecoder.decode(url, "UTF-8");
Review Comment:
If we wait for #4882 we can use `decode(String s, Charset charset)`
[URLDecoder](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLDecoder.html)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]