You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Peter Turcsanyi (Jira)" <ji...@apache.org> on 2020/08/13 10:44:00 UTC

[jira] [Created] (NIFI-7736) Duplicated permission checks in Empty All Queues

Peter Turcsanyi created NIFI-7736:
-------------------------------------

             Summary: Duplicated permission checks in Empty All Queues
                 Key: NIFI-7736
                 URL: https://issues.apache.org/jira/browse/NIFI-7736
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Peter Turcsanyi


{{ProcessGroupResource.authorizeHandleDropAllFlowFilesRequest()}} checks the permissions for the Empty All Queues feature.
It is traversing over the process group hierarchy to check all the connections in the sub process groups.
Traversing seems to be not needed because {{getEncapsulatedConnections()}} returns all the connections in the hierarchy so the permissions can be checked the parent group level. Traversing + {{getEncapsulatedConnections()}} leads to duplicated permission checks for connections in the children process groups.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)