You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "shanyu zhao (Jira)" <ji...@apache.org> on 2021/03/09 07:14:00 UTC

[jira] [Created] (LIVY-849) Livy http client does not decode password correctly

shanyu zhao created LIVY-849:
--------------------------------

             Summary: Livy http client does not decode password correctly
                 Key: LIVY-849
                 URL: https://issues.apache.org/jira/browse/LIVY-849
             Project: Livy
          Issue Type: Bug
          Components: Tests
    Affects Versions: 0.7.0, 0.6.0
            Reporter: shanyu zhao
            Assignee: shanyu zhao


If using special characters, e.g. "+" in livy password, creating HttpClient will result in 401 Unauthorized error.

To reproduce, we used URL like this to run Livy integration test against external cluster (ExternalCluster.scala):
https://user:pass%2bword@mylivyserver.com:8443/livy/v1

The problem is in LivyConnection.java, it is using URLDecoder.decode() to decode the userInfo we get from uri.getUserInfo(). Note that uri.getUserInfo() is already decoded string, a further decode() call will result in wrong password (e.g. change '+' to ' ').



--
This message was sent by Atlassian Jira
(v8.3.4#803005)