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)

Reply via email to