[ https://issues.apache.org/jira/browse/RANGER-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17269267#comment-17269267 ]
rujia commented on RANGER-3136: ------------------------------- [~maheshbandal] I got your point, but i think apply resource filter is a regular process when do getServicePolicies, if no resource params defined in request, then it will return all policies. So add "Service Name" will affect nothing, just follow the orignal rule. If you want skip resource filter to reduce some time for delete-all case, it is better to change the condition at https://github.com/apache/ranger/blob/4ff1c7ea9984812ec2ea02910ff8bb9eb9003f9a/security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java#L2536, make sure only request which has resource params can execute resource filter. > NullPointException found when import policies form web side and "isOverride" > is selected > ---------------------------------------------------------------------------------------- > > Key: RANGER-3136 > URL: https://issues.apache.org/jira/browse/RANGER-3136 > Project: Ranger > Issue Type: Bug > Components: admin > Affects Versions: 2.1.0 > Reporter: rujia > Priority: Major > Fix For: 3.0.0 > > Attachments: > 0001-NUllPointException-occur-when-import-polices-anf-isO.patch, > ServiceDBStore-L2536.png, image-2021-01-21-11-26-15-996.png, > image-2021-01-21-11-27-05-887.png > > > i got NullPointException when i imported policies json file from rangeradmin > web, i selected "isOverride" flag, it is caused by RANGER-3064, serchFilter > will be null when do deletePolices. -- This message was sent by Atlassian Jira (v8.3.4#803005)