[ https://issues.apache.org/jira/browse/RANGER-1832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203656#comment-16203656 ]
Pradeep Agrawal commented on RANGER-1832: ----------------------------------------- Patch committed in master branch: https://github.com/apache/ranger/commit/478f5ffc737b4c238db67e844e88fd73c61dc5da Patch committed in ranger-0.7 branch : https://github.com/apache/ranger/commit/c2e1ec9c79e47491c465cb4967aa5b08fbcda360 > 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)