[ 
https://issues.apache.org/jira/browse/NIFI-7736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17177067#comment-17177067
 ] 

ASF subversion and git services commented on NIFI-7736:
-------------------------------------------------------

Commit 6c3c2c173bbcdf32a91d604857cae3d5f9b348b6 in nifi's branch 
refs/heads/main from Tamas Palfy
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=6c3c2c1 ]

NIFI-7736 Fix: Empty All Queues performance - When authorizing request, 
checking read/write credentials on encapsulated process groups and connections 
was doubly recursive (for each element it added all child elements multiple 
times again, making this exponential instead of linear).


> 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
>            Assignee: Tamas Palfy
>            Priority: Major
>             Fix For: 1.12.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> {{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)

Reply via email to