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

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

Commit cdb9b81f4283052f6626a96e31e44c7da11d25a8 in nifi's branch 
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=cdb9b81 ]

NIFI-3092 This closes #1268. Double quoting java invocation in bat files with %*


> NiFi Toolkit bat files should quote command line args properly
> --------------------------------------------------------------
>
>                 Key: NIFI-3092
>                 URL: https://issues.apache.org/jira/browse/NIFI-3092
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Bryan Rosander
>            Assignee: Bryan Rosander
>             Fix For: 1.1.0
>
>
> The toolkit bat files currently don't quote the command line arguments passed 
> to them.  This results in problems with spaces or special characters as 
> arguments.
> We should be able to address this by double-quoting the cmd arguments.  If we 
> add a space before the closing "", we should be able to handle whether or not 
> the last argument is quoted.
> E.g. without spaces -n "localhost(2)" would be rendered as -n 
> "localhost(2)""" which breaks but with space it will be -n "localhost(2)" "" 
> which is interpreted correctly.
> See 
> http://stackoverflow.com/questions/12891383/correct-quoting-for-cmd-exe-for-multiple-arguments#answer-12892791



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to