[
https://issues.apache.org/jira/browse/NIFI-11944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17754254#comment-17754254
]
ASF subversion and git services commented on NIFI-11944:
--------------------------------------------------------
Commit 10f7efde0fd393336bf686f116ffab46bfb446ab in nifi's branch
refs/heads/support/nifi-1.x from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=10f7efde0f ]
NIFI-11944 Removed validation warning from ExecuteStreamCommand
- Removed customValidate() which logged an incorrect warning every 5 seconds
based on strategy string instance evaluation
Signed-off-by: Matt Burgess <[email protected]>
> Dynamic Property Arguments strategy no longer working
> -----------------------------------------------------
>
> Key: NIFI-11944
> URL: https://issues.apache.org/jira/browse/NIFI-11944
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.22.0, 1.23.0
> Reporter: Mahieddine Cherif
> Assignee: David Handermann
> Priority: Major
> Labels: ExecuteStreamCommand
> Fix For: 2.0.0, 1.24.0, 1.23.1
>
> Attachments: DynamicPropertyIssue.json, Screenshot 2023-08-11 at
> 15.09.35.png
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)
> {code:java}
> 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.{code}
> *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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)