You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Abhay Kulkarni (Jira)" <ji...@apache.org> on 2020/02/11 21:15:00 UTC

[jira] [Commented] (RANGER-2722) policies/hive/for-resource api call is returning deleted policies

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

Abhay Kulkarni commented on RANGER-2722:
----------------------------------------

Additional commit to fix similar issue in the plugin side.

Patch is available at the review board:

[https://reviews.apache.org/r/72115/]

> policies/hive/for-resource api call is returning deleted policies
> -----------------------------------------------------------------
>
>                 Key: RANGER-2722
>                 URL: https://issues.apache.org/jira/browse/RANGER-2722
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: master
>            Reporter: suja s
>            Assignee: Abhay Kulkarni
>            Priority: Major
>             Fix For: master, 2.1.0
>
>
> Scenario:
> 1. Create a policy in a hive service for database='testdb1'.
> 2. Ensure that no tag service is associated with thisĀ  hive service.
> 3. Delete all policies from the hive service.
> Although, a get call to fetch all policies in ranger does not return any policy for hive service, an api call <ranger_url>/service/public/v2/api/policies/hive/for-resource?resource:database='testdb1' returns deleted policies.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)