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

StandardNiFiServiceFacade: Recursive method call allows for Stack Overflow when a circular reference exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0, 1.7.1
    • Core Framework
    • None

    Description

      At a minimum, when you attempt to view a list of controller services in the gui this specific method is called to obtain a set of referenced controller service identifiers. If there is a circular dependency in that set, you end up with an infinite loop that ultimately results the user being redirected to an error page in the gui.

      The method in question is findControllerServiceReferencingComponentIdentifiers. It checks to see if each node has been visited already but does not add them to the set until after recursively calling itself again. If the line "visited.add(node);" is moved above the method call, this will be resolved.

      Attachments

        Issue Links

          Activity

            People

              markbean Mark Bean
              jsizzle Jon Kessler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: