Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-13475 Follow up items to complete UI migration
  3. NIFI-13849

Convert property to parameter tries to delete inherited parameters

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0-M4
    • None
    • Core UI
    • None

    Description

      Steps to reproduce:

      • Create a Parameter Context PCi with parameter A
      • Create a Parameter Context PC that inherits PCi
      • Create a Process Group that uses PC
      • In the process group, create a flow GFF -> InvokeHTTP, configure InvokeHTTP to use parameter A, and start InvokeHTTP processor (add a dummy endpoint and autoterminate relationships). In GFF, add a dynamic property foo => foo. Then click the Convert to Parameter option and click OK.

      At this point it will fail saying that the parameter A cannot be deleted because InvokeHTTP is running.

      Important note: if InvokeHTTP is NOT running, the conversion of the property value into a parameter works as expected and nothing gets deleted in the inherited parameter contexts.

      Debugging shows that this is because the ParameterContextDTO object sent in the update request specified null for the inherited parameter contexts and it makes the current logic think that all of the parameters from inherited parameter contexts should be deleted.

      When adding the parameter directly in the parameter context view, the same ParameterContextDTO object does correctly reference the inherited parameter context.

      It feels like a fix in the UI is needed so that the update request includes the references to the inherited parameter contexts.

      Attachments

        Issue Links

          Activity

            People

              mcgilman Matt Gilman
              pvillard Pierre Villard
              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