Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1819

Not able to delete group that is having special character(ampersand) from ranger admin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0, 0.7.2
    • Ranger
    • None

    Description

      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":

      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)
      

      Same issue present in case of the users

      Expected Result: It should delete the user/groups.

      Attachments

        1. RANGER-1819.1.patch
          10 kB
          Nitin Galave

        Issue Links

          Activity

            People

              nitin.galave Nitin Galave
              deepakhuawei Deepak Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: