You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Abhishek (Jira)" <ji...@apache.org> on 2022/09/27 10:17:00 UTC

[jira] [Created] (RANGER-3933) Restrict policy creation / updation with duplicate policy items

Abhishek created RANGER-3933:
--------------------------------

             Summary: Restrict policy creation / updation with duplicate policy items
                 Key: RANGER-3933
                 URL: https://issues.apache.org/jira/browse/RANGER-3933
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
            Reporter: Abhishek


A Ranger policy can be updated with multiple policy items which are duplicatesĀ 
of each other.
Even if there are thousands of duplicate policy items, the policy update is successful
and when the policy obj is retrieved, the policy object contains all the duplicate
policy items.
I tried to update a policy with 2000 policy items through API and theĀ 
policy update was successful. But when I tried to open the policy on the UI,
the page becomes unresponsive and opens only after a lot of retries.
All the policy items are rendered on the UI, and since they are duplicates of each other,
it would not be good user experience.
Since the policy object also contains the duplicate policy items,
this means that all the policy items would also be stored in the db, even if they are duplicates.

Ideally, if there are duplicate policy items in the request,
1. Either the request should be denied
2. The policy must be updated but with only unique policy items and it must
ignore duplicate policy items



--
This message was sent by Atlassian Jira
(v8.20.10#820010)