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

Mallika Gogoi commented on RANGER-3430:
---------------------------------------

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.

 [getAuthzEvents(RangerAccessResult result) 
|https://github.com/apache/ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerDefaultAuditHandler.java#L102]
    test case1: for variable result = null and request = null
    test case2: for variable result = null and request = not null
    test case3: for variable result = not null and request = null
    test case4: for variable result = not null and request = not null

[getAuthzEvents(Collection<RangerAccessResult> 
results)|https://github.com/apache/ranger/blob/master/agents-common/src/main/java/org/apache/ranger/plugin/audit/RangerDefaultAuditHandler.java#L156]
    test case1: for variable results = null and event = null
    test case2: for variable results = empty and event =  null
    test case3: for variable results = with one element and event = null
    test case4: for variable results =  null and event = not null
    test case5: for variable results = empty and event = not null
    test case6: for variable results = with one element and event = 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 Parikh 

> Null Dereference in RangerDefaultAuditHandler.java
> --------------------------------------------------
>
>                 Key: RANGER-3430
>                 URL: https://issues.apache.org/jira/browse/RANGER-3430
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Abhishek Kumar
>            Assignee: Mallika Gogoi
>            Priority: Minor
>
> Null dereference in RangerDefaultAuditHandler.java at line numbers : 150 and 
> 181.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to