[ 
https://issues.apache.org/jira/browse/RANGER-1696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abhay Kulkarni updated RANGER-1696:
-----------------------------------
    Description: 
Scenario:
Consider the following set of Ranger policies.
{noformat}
policy name                              Database       Table           column
policy_for_all_resource            *                    *                       
*
policy for testdb1                       testdb1                *               
        *
policy for testdb1-testtable1     testdb1               testtable1      *
policy for testcol in testtable1         testdb1                testtable1      
testcol
{noformat}

The following REST API call to get all policies for database 'testdb1',
http://<ranger-admin-ip>:6080/service/public/v2/api/policies/hive/for-resource?resource:database=testdb1
,is expected to return all above policies. However, 'policy for 
testdb1-testtable1' and 'policy for testcol in testtable1' are not returned.

  was:
Scenario:
Consider the following set of Ranger policies.
{noformat}
policy name                              Database       Table           column
policy_for_all_resource          *                      *                       
*
policy for testdb1                       testdb1                *               
        *
policy for testdb1-testtable1    testdb1                testtable1      *
policy for testcol in testtable1         testdb1                testtable1      
testcol
{noformat}

The following REST API call to get all policies for database 'testdb1',
http://<ranger-admin-ip>:6080/service/public/v2/api/policies/hive/for-resource?resource:database=testdb1
,is expected to return all above policies. However, 'policy for 
testdb1-testtable1' and 'policy for testcol in testtable1' are not returned.


> Request to get all policies for hive or hbase service-type does not include 
> policies that apply to specific child resource(such as table in hive/column 
> family in hbase)
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1696
>                 URL: https://issues.apache.org/jira/browse/RANGER-1696
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: master
>            Reporter: Abhay Kulkarni
>            Assignee: Abhay Kulkarni
>             Fix For: 1.0.0, master
>
>
> Scenario:
> Consider the following set of Ranger policies.
> {noformat}
> policy name                            Database       Table           column
> policy_for_all_resource            *                  *                       
> *
> policy for testdb1                     testdb1                *               
>         *
> policy for testdb1-testtable1     testdb1             testtable1      *
> policy for testcol in testtable1       testdb1                testtable1      
> testcol
> {noformat}
> The following REST API call to get all policies for database 'testdb1',
> http://<ranger-admin-ip>:6080/service/public/v2/api/policies/hive/for-resource?resource:database=testdb1
> ,is expected to return all above policies. However, 'policy for 
> testdb1-testtable1' and 'policy for testcol in testtable1' are not returned.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to