-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59296/
-----------------------------------------------------------
(Updated May 18, 2017, 1:35 a.m.)
Review request for ranger and Madhan Neethiraj.
Changes
-------
If multiple date-format strings are used, ensure that the format-string that
matches the most number of characters is used for parsing date-string into Java
Date object
Bugs: RANGER-1581
https://issues.apache.org/jira/browse/RANGER-1581
Repository: ranger
Description
-------
Ranger plugins interpret tag attributes of type 'date' using an internal Ranger
date-format string. Now, in addition to the internal Ranger date-format string
("yyyy/MM/dd"), plugins also support a comma-separated list of data-format
strings, based on the value of the plugin configuration parameter
"ranger.plugin.tag.attr.additional.date.formats". A special value string
"ATLAS_DATE_FORMAT" is supported to refer to default date-format used by Atlas.
Diffs (updated)
-----
agents-common/src/main/java/org/apache/ranger/plugin/conditionevaluator/RangerScriptExecutionContext.java
c46f527
agents-common/src/test/java/org/apache/ranger/plugin/policyengine/TestPolicyEngine.java
e556f16
agents-common/src/test/resources/policyengine/test_policyengine_tag_hive.json
34ccaac
Diff: https://reviews.apache.org/r/59296/diff/4/
Changes: https://reviews.apache.org/r/59296/diff/3-4/
Testing
-------
Developed a unit test for testing specification and use of
"ranger.plugin.tag.attr.additional.date.formats" configuration variable.
Thanks,
Abhay Kulkarni