[
https://issues.apache.org/jira/browse/RANGER-1832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16205677#comment-16205677
]
Pradeep Agrawal commented on RANGER-1832:
-----------------------------------------
Reopening this issue to distinguish the case of partial or full policy resource
value which is the actual requirement of this JIRA. To fix the same I am going
to introduce another request param "resourceMatch" which can have "partial" or
"full" value.
> Export REST API should return exact matching results if polResource param is
> provided
> -------------------------------------------------------------------------------------
>
> Key: RANGER-1832
> URL: https://issues.apache.org/jira/browse/RANGER-1832
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 0.7.0, 1.0.0, 0.7.1
> Reporter: Pradeep Agrawal
> Assignee: Pradeep Agrawal
> Fix For: 1.0.0, 0.7.2
>
> Attachments: RANGER-1832-master.patch
>
>
> Currently, Export REST API returns partial matching results also even if
> polResource param is provided.
> Use Case :
> 1) Create a ranger hdfs policy with resource path /tmp/abcdefg
> 2) Call REST API to export policy for resource path: /tmp/abcd
> http://localhost:6080/service/plugins/policies/exportJson?serviceName=source_hadoop&polResource=/tmp/abcd&resource:path=/tmp/abcd&serviceType=hdfs&resourceMatchScope=self_or_ancestor"
> ER: REST call should not return policy for resource /tmp/abcdefg
> AR: REST call is returning policy for resource /tmp/abcdefg
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)