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

Justin Venus updated AURORA-1782:
---------------------------------
    Summary: Thermos Executor is not handling apostrophe gracefully  (was: 
Thermos Executor is ignoring shell escapes in Unified Containerizer code path)

> Thermos Executor is not handling apostrophe gracefully
> ------------------------------------------------------
>
>                 Key: AURORA-1782
>                 URL: https://issues.apache.org/jira/browse/AURORA-1782
>             Project: Aurora
>          Issue Type: Bug
>    Affects Versions: 0.16.0
>            Reporter: Justin Venus
>
> When using mesos containerizer with an image, the code path taken appears to 
> be stripping new line characters making it impossible to render files with 
> '/bin/echo' or execute inline python scripts.  I suspect this is due to the 
> introduction of shlex.split() in the method wrapped_cmdline() in the file 
> src/main/python/apache/thermos/core/process.py, but I haven't investigated 
> any further.
> This is a regression from the behavior in 0.15.0.   
> This is enough to cause an execution to fail.
> {code}
> python -c 'import sys
> if __name__ == "__main__":
>   sys.exit(0)'
> {code}
> This is the error seen when running an inline script from a Process().
> {code}
> Failed to parse the flags: Failed to load flag 'command': Failed to load 
> value '{"shell":true,"value":"/bin/bash -c 'python -c import': syntax error 
> at line 1 near: 
> {code}



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

Reply via email to