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

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:

If a policy contains one or more resources along with given resource then the 
policy will not be exported.
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 5fa114d 


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


Testing
-------

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


Thanks,

bhavik patel

Reply via email to