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

Unable to manage flows containing versioned process groups with parameter context

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: Flow Versioning
    • Labels:
      None

      Description

      Nifi is unable to import a flow from Nifi Registry, if that flow contain one or more process groups that

      1. have a parameter context
      2. is already under source control.

      To reproduce the error, create a process group (groupA), add some processor, add a parameter context, and map the parameter(s) to processor properties. Check in groupA to Registry, and remove it from the canvas. Create a new group, groupB, that acts as the root group in the flow. Enter groupB, and import groupA from Registry. Check in groupB.

      From a different Nifi instance, import groupB from Registry. Nifi gives the following error message:

      An unexpected error has occurred. Please check the logs for additional details (the logs do not contain any further error message)

      A different error message is produced if the flow is already on the Nifi canvas, and updated via the Version->Change version menu:

      Failed to update flow to new version due to java.lang.NullPointerException

      A work-around is to remove the sub-groups from source control. E.g. in the example above, navigate to groupA on the Nifi instance where the flow was created, and stop version control of groupA. Check in the changes of groupB. You should now be able to import groupB from Registry on a different Nifi instance.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bbende Bryan Bende
                Reporter:
                gkberg Geir Klingenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 40m
                  40m