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:16:20 UTC

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

    [ https://issues.apache.org/jira/browse/RANGER-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387414#comment-15387414 ] 

ruoyu wang commented on RANGER-1115:
------------------------------------

the encode method in usersync ,URLEncoder.encode(s, "UTF-8") translate space into +.
but decode method in admin, uriComponet.decode translate %20 into space. 

> 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)