[ 
https://issues.apache.org/jira/browse/OOZIE-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Kanter updated OOZIE-1286:
---------------------------------

    Attachment: OOZIE-1286.patch

There were two issues:
1. The Java code was merging all of the arguments together with the command and 
then splitting on whitespace when passing it to the ProcessBuilder
2. The shell scripts were "flattening" the arguments into a single string and 
then executing that string

The patch reworks both areas to keep the arguments intact.  

I also added a test to verify that it handles spaces properly now; though its 
disabled in test-patch but I verified it locally and also ran the ssh example.  
                
> SSH Action does not properly handle arguments that have spaces
> --------------------------------------------------------------
>
>                 Key: OOZIE-1286
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1286
>             Project: Oozie
>          Issue Type: Bug
>          Components: action
>    Affects Versions: trunk
>            Reporter: Robert Kanter
>            Assignee: Robert Kanter
>             Fix For: trunk
>
>         Attachments: OOZIE-1286.patch
>
>
> The SSH action treats arguments that have a space as separate arguments 
> instead of as a single argument, even if you put quotes or do similar tricks. 
>  
> e.g.
> {code:xml}
> <command>svn</command>
> <args>commit</args>
> <args>-m</args>
> <args>hello world</args>
> {code}
> This will actually send {{svn commit -m "hello" "world"}} instead of {{svn 
> commit -m "hello world"}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to