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

Using inconsistent location URL for Registry Client on different NiFi instances will break ability to import version controlled flows that contain nested version controlled flows.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0, 1.6.0, 1.7.0
    • Fix Version/s: 1.8.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      Using inconsistent location URL for Registry Client on different NiFi instances will break ability to import version controlled flows that contain nested version controlled flows.

      For example:
      on NiFi instance 1, configure "Registry Client" location URL with https://<nifi-registry>:<port>/
      on NiFi instance 2, configure "Registry Client" location URL with https://<nifi-registry>:<port>

      notice that one contains a trailing "/"

      On one of your NiFi instances, create a Process Group (PG).
      Inside that PG, create another "sub-PG".
      Start version control of sub-PG.
      Go back to parent PG and also start version control on that "PG".

      Go to your other NiFi instance and try to "import" the "PG" version controlled flow.
      Import will fail and throw following error in nifi-user.log:
      o.a.n.w.a.c.IllegalArgumentExceptionMapper java.lang.IllegalArgumentException: The Flow Registry with ID <UUID> reports that no Flow exists with Bucket <UUID>, Flow <UUID, Version 2. Returning Bad Request response.

      Even though registry does include the referenced UUIDs in that log output.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bbende Bryan Bende
                Reporter:
                msclarke Matthew Clarke
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: