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

Import Ranger Policy(ies) failing with NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.0, 1.0.1
    • Fix Version/s: 1.1.0, 1.0.1
    • Component/s: Ranger
    • Labels:
      None

      Description

      Trying to import policies through Ranger Admin UI fails with NPE.

      Error in logs:
      2018-03-27 21:05:45,862 [http-bio-6080-exec-27] ERROR org.apache.ranger.rest.ServiceREST (ServiceREST.java:2185) - Error while importing policy from file!!
      java.lang.NullPointerException
      at org.apache.ranger.common.RangerSearchUtil.getSearchFilter(RangerSearchUtil.java:48)
      at org.apache.ranger.rest.ServiceREST.getServicePoliciesByName(ServiceREST.java:2541)
      at org.apache.ranger.rest.ServiceREST.deletePoliciesProvidedInServiceMap(ServiceREST.java:2315)
      at org.apache.ranger.rest.ServiceREST.importPoliciesFromFile(ServiceREST.java:2092)
      at org.apache.ranger.rest.ServiceREST$$FastClassBySpringCGLIB$$92dab672.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:69)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pradeep.agrawal Pradeep Agrawal
                Reporter:
                aleekha Anuja Leekha
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: