You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Jiayi Liu <li...@gmail.com> on 2021/06/24 03:54:59 UTC
Review Request 73433: RANGER-3321: policy validator failed to verify
resource uniqueness when resourceName contains uppercase letters
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/73433/
-----------------------------------------------------------
Review request for ranger, bhavik patel, Dineshkumar Yadav, Jayendra Parab, Kishor Gollapalliwar, Abhay Kulkarni, Mehul Parikh, Ramesh Mani, and Velmurugan Periasamy.
Bugs: RANGER-3321
https://issues.apache.org/jira/browse/RANGER-3321
Repository: ranger
Description
-------
We need to convert the resourceName to lowercase before verifying the uniqueness of the resource. Otherwise, when resourceName contains uppercase letters, a policy with duplicate resources will be created.
For example, Database=testdb and database=testdb will generate different resource signatures, but Database=testdb will be converted to database=testdb before being stored in the database.
Diffs
-----
agents-common/src/main/java/org/apache/ranger/plugin/model/validation/RangerPolicyValidator.java 0ba1fb918
Diff: https://reviews.apache.org/r/73433/diff/1/
Testing
-------
Database=testdb,Table=test,Column=* and database=testdb,table=test,column=* will be judged as a duplicate resource.
Thanks,
Jiayi Liu