You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Pradeep Agrawal (JIRA)" <ji...@apache.org> on 2016/12/21 15:19:58 UTC
[jira] [Created] (RANGER-1276) User/Group search is failing due to
encoding issues
Pradeep Agrawal created RANGER-1276:
---------------------------------------
Summary: User/Group search is failing due to encoding issues
Key: RANGER-1276
URL: https://issues.apache.org/jira/browse/RANGER-1276
Project: Ranger
Issue Type: Bug
Components: Ranger
Affects Versions: 0.7.0
Reporter: Pradeep Agrawal
Assignee: Pradeep Agrawal
if usersync process add groups with spaces in ranger admin, then to remove a user from a group it calls REST:
/group/{groupName}/user/{userName}
In this REST call if a group name contains spaces then URLEncoder.encode(s, "UTF-8") method replace these spaces with + symbol and request is forwarded to ranger-admin. Whenever Ranger receives group name with + character (rather spaces) it tries to search the received group name in db but fails to find any rows as the group name with '+' character does not exist. At Ranger admin end this process is considered as a failure of the request and ranger-admin sends the error message to the log file.
Expected : During encoding usersync process should encode spaces to %20 so that ranger-admin can decode the %20 code to spaces.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)