ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Kulkarni <akulka...@hortonworks.com>
Subject Re: Review Request 70659: RANGER-2438: Legacy PublicAPI REST API to get all policies fails
Date Thu, 16 May 2019 20:41:31 GMT

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

(Updated May 16, 2019, 8:41 p.m.)


Review request for ranger, Madhan Neethiraj, Ramesh Mani, and Velmurugan Periasamy.


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


Repository: ranger


Description
-------

A 'Get' on the REST endpoint /service/public/api/policy fails when any access-type string
is not specified in its internal mapping table. In such case, such access-type is now mapped
to value corresponding to 'unknown' access-type.

Also included in the patch is a check when deleting service or service-definition to avoid
NPE.


Diffs
-----

  security-admin/src/main/java/org/apache/ranger/common/ServiceUtil.java 200347474 
  security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java 3ff763c71 


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


Testing
-------

Tested the API using curl script, and verified that the API succeeds and provides list of
policies.


Thanks,

Abhay Kulkarni


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message