[ 
https://issues.apache.org/jira/browse/NIFI-3221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16840686#comment-16840686
 ] 

ASF subversion and git services commented on NIFI-3221:
-------------------------------------------------------

Commit 4b509aa5a5b3d98d0a23d1c8fce090c8bee1e6d8 in nifi's branch 
refs/heads/master from Otto Fowler
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4b509aa ]

NIFI-3221 This closes #3396. Add a new property for setting the argument 
passing strategy, either the existing parameter, or by adding new dynamic 
parameters, along with implementation and tests
This allows for passing arguments with quotes.

Signed-off-by: Joe Witt <[email protected]>


> ExecuteStreamCommand filters out any double quotes when parsing the "Command 
> Arguments"
> ---------------------------------------------------------------------------------------
>
>                 Key: NIFI-3221
>                 URL: https://issues.apache.org/jira/browse/NIFI-3221
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joseph Percivall
>            Assignee: Otto Fowler
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Brought up on the mailing list[1], the ExecuteStreamCommand attempts to 
> intelligently parse the "Command Arguments" by automatically detecting double 
> quotes (") and treating those within double quotes as a single argument[2]. 
> This is a nice feature but has the unfortunate side-effect of filtering out 
> all double quotes. 
> It should instead take into account when the double quote is escaped: \"
> [1] http://mail-archives.apache.org/mod_mbox/nifi-users/201612.mbox/browser 
> [2] 
> https://github.com/apache/nifi/blob/e12e7a55b75f5e358bdbcea79be9baba77532f94/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/util/ArgumentUtils.java#L60-L60



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to