vyommani opened a new pull request, #1386:
URL: https://github.com/apache/ranger/pull/1386

   ## What changes were proposed in this pull request?
   Follow-up to #1382.
   
   getItemConditionsKey sorted the values inside each condition. Script 
conditions use values.get(0) as the script, and script-template conditions use 
values.get(0) as the expected result, so that order is part of the condition. A 
reorder of those values was not reported in the delegated-admin access-type 
delta.
   
   Values are now kept in stored order. The list of conditions is still sorted, 
because every condition must match and their order does not change the result.
   
   Tests cover a script value swap, reordering of separate conditions, and a 
null condition value in the same order and in the other order.
   
   ## How was this patch tested?
   
   added new test to cover this change.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to