You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Mahesh Hanumant Bandal (Jira)" <ji...@apache.org> on 2021/01/20 13:05:00 UTC
[jira] [Commented] (RANGER-3136) NullPointException found when
import policies form web side and "isOverride" is selected
[ https://issues.apache.org/jira/browse/RANGER-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17268564#comment-17268564 ]
Mahesh Hanumant Bandal commented on RANGER-3136:
------------------------------------------------
Hi [~rujia1019] , I tried to reproduce this issue. I took latest code base from ranger repository [https://github.com/apache/ranger] into my local machine.
I have reverted your patch [https://github.com/apache/ranger/commit/bd1cf093b7a03431e3bbddf36dd2a565c32dcd40] in my local repository and build ranger locally.
I have tried following steps to reproduce NPE :
{code:java}
1. Created new hive services named as "hive_one" and "hive_two". These two services has their default policies.
2. Under "hive_one" service I have created one new policy named as "test_policy_one".
3. Export policy from service "hive_one" into a json file.
4. Import policies from from json file into service "hive_two" with "Override Policy" flag is checked.
{code}
I did not see any NullPointerException in logs. I did not see any error while import policy.
Can you please provide steps to reproduce this issue?
CC: [~pradeep], [~mehul], [~vel]
> 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
>
>
> 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)