You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Li Xuanji (JIRA)" <ji...@apache.org> on 2017/03/16 23:43:42 UTC

[jira] [Resolved] (AIRFLOW-706) Configuration shell commands are not split properly

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

Li Xuanji resolved AIRFLOW-706.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

Issue resolved by pull request #2053
[https://github.com/apache/incubator-airflow/pull/2053]

> Configuration shell commands are not split properly
> ---------------------------------------------------
>
>                 Key: AIRFLOW-706
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-706
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: Airflow 1.7.1.3
>            Reporter: Scott Kruger
>             Fix For: 1.9.0
>
>
> The command string in {{airflow.configuration.run_command}} is split with {{str.split}} instead of {{shlex.split}}; this can cause problems when a valid command includes an argument with spaces, e.g.
> {noformat}
> echo "foo bar"
> {noformat}
>  is split into 
> {noformat}
> ['echo', '"foo', 'bar"']
> {noformat}
> See: https://github.com/apache/incubator-airflow/blob/master/airflow/configuration.py#L79



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)