[
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
Talked with Alejandro offline: we need to preserve backwards compatibility.
So, the new patch adds an ssh-action-0.2.xsd where you can use the {{<args>}}
tag with the original behavior, or the new {{<arg>}} tag with the new behavior.
I had to add a flag to pass to the ssh scripts and make them a little uglier
to allow them to work with both behaviors. I made the scripts such that the
absence of the flag should still do the original behavior.
There should be one line longer than 132 chars: its the list of extension
action xsd's in oozie-site. Oozie doesn't seem to startup if they are not all
on one line (I just added a comment to OOZIE-1284 about this)
> 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, OOZIE-1286.patch, OOZIE-1286.patch,
> OOZIE-1286.patch, 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