[
https://issues.apache.org/jira/browse/RANGER-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17442682#comment-17442682
]
Mallika Gogoi edited comment on RANGER-3431 at 11/12/21, 10:59 AM:
-------------------------------------------------------------------
After analysing we found that there are 2 following methods which needs to be
addressed/ checked. We analysed and tried/ checked all possible scenarios which
might leads to NullPointerException. Details are as follows .
[getConditionDef(String conditionName)
|https://github.com/apache/ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyItemEvaluator.java#L284]
test case1: for variable conditionName = null
test case2: for variable conditionName = not null
[newConditionEvaluator(String
className)|https://github.com/apache/ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyItemEvaluator.java#L308]
test case1: for variable className = null and result = null
test case2: for variable className = not null
Since we are not able to reproduce/ come-up with a scenario which leads to
NullPointerException, we conclude no action required on this task.
CC [~mehul]
was (Author: mallikagogoi7):
After analysing we found that there are 5 following methods which needs to be
addressed/ checked. We analysed and tried/ checked all possible scenarios which
might leads to NullPointerException. Details are as follows .
[getConditionDef(String conditionName)
|https://github.com/apache/ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyItemEvaluator.java#L284]
test case1: for variable conditionName = null
test case2: for variable conditionName = not null
[newConditionEvaluator(String
className)|https://github.com/apache/ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerDefaultPolicyItemEvaluator.java#L308]
test case1: for variable className = null and result = null
test case2: for variable className = not null
Since we are not able to reproduce/ come-up with a scenario which leads to
NullPointerException, we conclude no action required on this task.
CC [~mehul]
> Null Dereference in RangerDefaultPolicyItemEvaluator.java
> ---------------------------------------------------------
>
> Key: RANGER-3431
> URL: https://issues.apache.org/jira/browse/RANGER-3431
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Reporter: Abhishek Kumar
> Assignee: Mallika Gogoi
> Priority: Minor
>
> Null Dereference in RangerDefaultPolicyItemEvaluator.java at line numbers 302
> and 325.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)