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

Dynamic Property Arguments strategy no longer working

    XMLWordPrintableJSON

Details

    Description

      It appears that since the latest refactoring of the ExecuteStreamCommand processor, a regression has been introduced.

      When one sets the arguments strategy to "Dynamic Property Arguments", it is still interpreted as Command Argument.

      So concretely not only the processor doesn't build the command property but also emits continuously warnings (As if one have set dynamic properties without choosing the appropriate strategy which is not the case)

      ExecuteStreamCommand[id=e43875bb-0189-1000-0000-000016ec126f] [Command Arguments Strategy] should be set to [Dynamic Property Arguments] when command arguments are supplied as Dynamic Properties. The property [command.argument.1] will be ignored.

      Bug Reproducer :

      It is really easy to replicate, just pull the ExecuteStreamCommand processor, set CommandArgumentStrategy to Dynamic Property Argument, in command set for instance cat and a dynamic property command.argument.1 => *

      I've attached a reproducer here a small flow that replicate the issue.

      Attachments

        1. DynamicPropertyIssue.json
          9 kB
          Mahieddine Cherif
        2. Screenshot 2023-08-11 at 15.09.35.png
          126 kB
          Mahieddine Cherif

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              mahieddine Mahieddine Cherif
              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 - 0.5h
                  0.5h