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

Policy engine initialization should handle incorrect values in policies

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0, 0.5.1, 0.5.2, 0.6.0
    • Fix Version/s: 0.6.0, 0.5.3
    • Component/s: plugins
    • Labels:
      None

      Description

      Ranger policy engine initialization does not expect NULL value for a resource (like path). When a policy has such a value, the initialization fails with NPE. Policy engine should be updated to ignore NULL values.

      java.lang.NullPointerException
      at org.apache.ranger.plugin.policyevaluator.RangerOptimizedPolicyEvaluator.computeEvalOrder(RangerOptimizedPolicyEvaluator.java:164)
      at org.apache.ranger.plugin.policyevaluator.RangerOptimizedPolicyEvaluator.init(RangerOptimizedPolicyEvaluator.java:96)
      at org.apache.ranger.plugin.policyevaluator.RangerCachedPolicyEvaluator.init(RangerCachedPolicyEvaluator.java:40)
      at org.apache.ranger.plugin.policyengine.RangerPolicyRepository.buildPolicyEvaluator(RangerPolicyRepository.java:177)
      at org.apache.ranger.plugin.policyengine.RangerPolicyRepository.<init>(RangerPolicyRepository.java:84)
      at org.apache.ranger.plugin.policyengine.RangerPolicyEngineImpl.<init>(RangerPolicyEngineImpl.java:58)
      at org.apache.ranger.plugin.service.RangerBasePlugin.setPolicies(RangerBasePlugin.java:110)
      at org.apa

        Attachments

          Activity

            People

            • Assignee:
              madhan Madhan Neethiraj
              Reporter:
              madhan Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: