You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2018/08/23 09:45:00 UTC

[jira] [Commented] (AIRFLOW-2574) initdb fails when mysql password contains percent sign

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

jack commented on AIRFLOW-2574:
-------------------------------

[~0] This is unrelated to MySQL.

It happens because Airflow uses alabmic package

{color:#24292e}[https://github.com/apache/incubator-airflow/blob/master/airflow/utils/db.py#L334]{color}

 

{color:#24292e}It happens because alabmic uses old python format style which includes the % char. When they will move to the new style{color}

{color:#24292e}and airflow will enforce the new package this should be resolved.{color}

{color:#24292e}https://github.com/alembic/alembic/issues/186{color}

> initdb fails when mysql password contains percent sign
> ------------------------------------------------------
>
>                 Key: AIRFLOW-2574
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2574
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: db
>            Reporter: Zihao Zhang
>            Priority: Minor
>
> [db.py|https://github.com/apache/incubator-airflow/blob/3358551c8e73d9019900f7a85f18ebfd88591450/airflow/utils/db.py#L345] uses [config.set_main_option|http://alembic.zzzcomputing.com/en/latest/api/config.html#alembic.config.Config.set_main_option] which says "A raw percent sign not part of an interpolation symbol must therefore be escaped"
> When there is a percent sign in database connection string, this will crash due to bad interpolation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)