-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62534/
-----------------------------------------------------------

(Updated Sept. 27, 2017, 3:52 a.m.)


Review request for ranger, Ankita Sinha, Don Bosco Durai, Gautam Borad, Abhay 
Kulkarni, Madhan Neethiraj, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj, 
Sailaja Polavarapu, and Velmurugan Periasamy.


Bugs: RANGER-1748
    https://issues.apache.org/jira/browse/RANGER-1748


Repository: ranger


Description
-------

Currently if user importing policy from file and user want's to update any 
policy for a specific resource which is not allowed.

For the given resource following rules shall apply:

1. If a policy contains one or more resources along with given resource then 
the policy will not be exported.
2. If a policy contains one or more resources along with given resource then 
the policy will not be deleted from target ranger during import call.

**Note:**
Export policy example URL: 
http://localhost:6080/service/plugins/policies/exportJson?serviceName=source_hive&polResource=employee&resource:database=employee&serviceType=hive&resourceMatchScope=self_or_ancestor
Import policy example URL: 
http://localhost:6080/service/plugins/policies/importPoliciesFromFile?updateIfExists=true&polResource=employee


Diffs
-----

  security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java f1ce3af 


Diff: https://reviews.apache.org/r/62534/diff/1/


Testing
-------

1. Verified policies are getting updated while importing from file for specific 
resource.


Thanks,

bhavik patel

Reply via email to