Nitin Galave created RANGER-1819: ------------------------------------ Summary: Not able to delete group that is having special character(ampersand) from ranger admin Key: RANGER-1819 URL: https://issues.apache.org/jira/browse/RANGER-1819 Project: Ranger Issue Type: Bug Components: Ranger Affects Versions: 1.0.0 Reporter: Nitin Galave Assignee: Nitin Galave Fix For: 1.0.0, 0.7.2
Trying to delete some of the group with special character from the ranger admin, but not able to delete. This issue happens only if there is & in the username: groupspecial#$@& i see this error saying this user is not found, user does not seems to be parsed correctly at the time of deletion, groupspecial#$@& is the username whereas ranger tries to delete "groupspecial": {code} 2017-09-27 13:08:49,214 [http-bio-6182-exec-22] INFO org.apache.ranger.biz.SessionMgr (SessionMgr.java:232) - UserSession Updated to set new Permissions to User: hive 2017-09-27 13:08:49,214 [http-bio-6182-exec-22] INFO org.apache.ranger.biz.SessionMgr (SessionMgr.java:184) - Login Success: loginId=hive, sessionId=null, sessionId=8E3EF64186DAFB35987287CFB30A0B9B, requestId=172.27.68.207, epoch=1506517729214 2017-09-27 13:08:52,333 [http-bio-6182-exec-21] INFO org.apache.ranger.common.RESTErrorUtil (RESTErrorUtil.java:63) - Request failed. loginId=admin, logMessage=groupspecial is Not Found javax.ws.rs.WebApplicationException at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:56) at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:325) at org.apache.ranger.service.XGroupService.getGroupByGroupName(XGroupService.java:104) at org.apache.ranger.rest.XUserREST.deleteSingleGroupByGroupName(XUserREST.java:1100) at org.apache.ranger.rest.XUserREST$$FastClassBySpringCGLIB$$b2a65360.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:700) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) {code} *Same in case of the users* Expected Result: It should delete the user/groups. -- This message was sent by Atlassian JIRA (v6.4.14#64029)