> On Oct. 27, 2022, 6:22 p.m., Dineshkumar Yadav wrote: > > agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerValidityScheduleValidator.java > > Line 366 (original), 366 (patched) > > <https://reviews.apache.org/r/74167/diff/1/?file=2270653#file2270653line366> > > > > This seems to be not satisfying condition.
Updated validation to handle year ranger differently from the rest - month/dayOfMonth/dayOfWeek/hour/minute. > On Oct. 27, 2022, 6:22 p.m., Dineshkumar Yadav wrote: > > agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerValidityScheduleValidator.java > > Line 375 (original), 375 (patched) > > <https://reviews.apache.org/r/74167/diff/1/?file=2270653#file2270653line375> > > > > This seems to be not satisfying condition Updated validation to handle year ranger differently from the rest - month/dayOfMonth/dayOfWeek/hour/minute. - Madhan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/74167/#review224839 ----------------------------------------------------------- On Oct. 27, 2022, 8:27 p.m., Madhan Neethiraj wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/74167/ > ----------------------------------------------------------- > > (Updated Oct. 27, 2022, 8:27 p.m.) > > > Review request for ranger, Ankita Sinha, Dineshkumar Yadav, Kishor > Gollapalliwar, Abhay Kulkarni, Pradeep Agrawal, Ramesh Mani, Sailaja > Polavarapu, Subhrat Chaudhary, and Velmurugan Periasamy. > > > Bugs: RANGER-3888 > https://issues.apache.org/jira/browse/RANGER-3888 > > > Repository: ranger > > > Description > ------- > > - updated unit tests to add more details in failure messages to make > troubleshooting easier > - updated tests for valid range for month: 0-11 > - updated validation logic to fail only when a given range is completely > outside the valid range; earlier validation used to fail even if either min > or max fall out of range > > > Diffs > ----- > > > agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerValidityScheduleValidator.java > 1e38118f7 > > agents-common/src/test/java/org/apache/ranger/plugin/policyengine/TestPolicyEngine.java > 59c50e4ca > > agents-common/src/test/resources/policyengine/validityscheduler/test-validity-schedules-invalid.json > 321df659f > > > Diff: https://reviews.apache.org/r/74167/diff/2/ > > > Testing > ------- > > - verified that TestPolicyEngine tests pass successfully > > > Thanks, > > Madhan Neethiraj > >
