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

Mallika Gogoi commented on RANGER-3429:
---------------------------------------

After analysing we found that there are 3 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.

[getTagDefByName(String 
name)|https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/biz/TagDBStore.java#L235]
  test case1: for variable name = null 
  test case2: for variable name = not null

[getServiceResourceByServiceAndResourceSignature(String serviceName, String 
resourceSignature)|https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/biz/TagDBStore.java#L663]
  test case1: for variable serviceName = null, resourceSignature = null and 
service = null
  test case2: for variable serviceName = null, resourceSignature = null and 
service = not null
  test case3: for variable serviceName = null, resourceSignature = not null and 
service = null
  test case4: for variable serviceName = null, resourceSignature = not null and 
service = not null
  test case5: for variable serviceName = not null, resourceSignature = null and 
service = null
  test case6: for variable serviceName = not null, resourceSignature = null and 
service = not null
  test case7: for variable serviceName = not null, resourceSignature = not null 
and service = null
  test case8: for variable serviceName = not null, resourceSignature = not null 
and service = not null

[createServiceTagsDelta(List<XXTagChangeLog> 
changeLogs)|https://github.com/apache/ranger/blob/master/security-admin/src/main/java/org/apache/ranger/biz/TagDBStore.java#L1189]
  test case1: for variable changeLogs = null 
  test case2: for variable changeLogs = 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 TagDBStore.java
> -----------------------------------
>
>                 Key: RANGER-3429
>                 URL: https://issues.apache.org/jira/browse/RANGER-3429
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Abhishek Kumar
>            Assignee: Mallika Gogoi
>            Priority: Minor
>
> Null dereference in TagDBStore.java at line numbers : 247 and 677.



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

Reply via email to