Repository: incubator-ranger Updated Branches: refs/heads/master 001c91155 -> 988b2d7aa
RANGER-1276 : User/Group search is failing due to encoding issues Signed-off-by: Velmurugan Periasamy <v...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/988b2d7a Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/988b2d7a Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/988b2d7a Branch: refs/heads/master Commit: 988b2d7aad34fd3445ab4e70ae7460e3f103d6a0 Parents: 001c911 Author: pradeep agrawal <pradeep.agra...@freestoneinfotech.com> Authored: Thu Dec 22 14:27:31 2016 +0530 Committer: Velmurugan Periasamy <v...@apache.org> Committed: Wed Dec 28 18:09:37 2016 -0500 ---------------------------------------------------------------------- .../main/java/org/apache/ranger/usersync/util/UserSyncUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/988b2d7a/ugsync/src/main/java/org/apache/ranger/usersync/util/UserSyncUtil.java ---------------------------------------------------------------------- diff --git a/ugsync/src/main/java/org/apache/ranger/usersync/util/UserSyncUtil.java b/ugsync/src/main/java/org/apache/ranger/usersync/util/UserSyncUtil.java index a33576b..22a7531 100644 --- a/ugsync/src/main/java/org/apache/ranger/usersync/util/UserSyncUtil.java +++ b/ugsync/src/main/java/org/apache/ranger/usersync/util/UserSyncUtil.java @@ -29,7 +29,7 @@ public class UserSyncUtil { String ret = null; try { - ret = URLEncoder.encode(s, "UTF-8"); + ret = URLEncoder.encode(s, "UTF-8").replaceAll("\\+", "%20"); } catch (UnsupportedEncodingException e) { throw e; }