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

ASF GitHub Bot commented on AIRFLOW-2574:
-----------------------------------------

kaxil closed pull request #3787: [AIRFLOW-2574] Cope with '%' in SQLA DSN when 
running migrations
URL: https://github.com/apache/incubator-airflow/pull/3787
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> 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
>    Affects Versions: 1.9.0, 1.10.0
>            Reporter: Zihao Zhang
>            Priority: Minor
>             Fix For: 1.10.1
>
>
> [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)

Reply via email to