You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Juan C. Sequeiros (JIRA)" <ji...@apache.org> on 2016/12/19 19:15:58 UTC

[jira] [Commented] (NIFI-3221) ExecuteStreamCommand filters out any double quotes when parsing the "Command Arguments"

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

Juan C. Sequeiros commented on NIFI-3221:
-----------------------------------------

If output lets you use a format and that format is JSON it wont allow it since I cant use the quotes. 
Example: command --format ( { "FIELD 1:" : "%FIELD1", "FIELD 2:" : "%FIELD2" } )

> 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
>
> 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
(v6.3.4#6332)