You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "ruoyu wang (JIRA)" <ji...@apache.org> on 2016/07/21 09:09:20 UTC

[jira] [Created] (RANGER-1115) URLEncode and URLDecode methods are mismatch on usersync and admin

ruoyu wang created RANGER-1115:
----------------------------------

             Summary: URLEncode and URLDecode methods are mismatch on usersync and admin
                 Key: RANGER-1115
                 URL: https://issues.apache.org/jira/browse/RANGER-1115
             Project: Ranger
          Issue Type: Bug
          Components: admin, usersync
    Affects Versions: 0.6.0
            Reporter: ruoyu wang


I  tried to call rest api (delete) /service/xusers/group/{groupName}/user/{userName} from ugsync (method private void delXUserGroupInfo).
I pass path parameter, userName like "a b+c". Method called in ugsync, UserSyncUtil.encodeURIParam(username) encode userName into "a+b%2Bc" but on admin, userName decoded into "a+b+c".
It seems space is not decoded properly. 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)