ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Kulkarni <akulka...@hortonworks.com>
Subject Review Request 54728: Policy engine initialization must be resilient to invalid values in the downloaded policies JSON
Date Wed, 14 Dec 2016 01:54:47 GMT

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

Review request for ranger, Madhan Neethiraj and Velmurugan Periasamy.


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


Repository: ranger


Description
-------

If there are null values in downloaded policies JSON (possibly in policy-resource-specs, users
and groups), then policy-engine initialization fails. policy-engine should be resilient in
the face of such invalid values, by ignoring them and reporting such values prominently.


Diffs
-----

  agents-common/src/main/java/org/apache/ranger/plugin/policyevaluator/RangerOptimizedPolicyEvaluator.java
b8cb864 
  agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java 326d650


Diff: https://reviews.apache.org/r/54728/diff/


Testing
-------

Tested on local VM with policies JSON file with null group names to ensure policy-engine was
initialized without offending (null) groups. All unit tests passed.


Thanks,

Abhay Kulkarni


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