ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Agrawal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RANGER-882) Policy engine initialization should handle incorrect values in policies
Date Wed, 23 Mar 2016 09:47:25 GMT

    [ https://issues.apache.org/jira/browse/RANGER-882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208146#comment-15208146
] 

Pradeep Agrawal commented on RANGER-882:
----------------------------------------

Third commit to handle null and empty resource values:
master - 9b1fa33ce0326fb19e8641f0a3b105c8b714f8b5
0.5 - bc776c0cdcc32b225d1418525afa7b8ea6e809d8


> Policy engine initialization should handle incorrect values in policies
> -----------------------------------------------------------------------
>
>                 Key: RANGER-882
>                 URL: https://issues.apache.org/jira/browse/RANGER-882
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 0.5.0, 0.5.1, 0.5.2, 0.6.0
>            Reporter: Madhan Neethiraj
>            Assignee: Alok Lal
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message