Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7736

Duplicated permission checks in Empty All Queues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              tpalfy Tamas Palfy
              turcsanyip Peter Turcsanyi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h