You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (Jira)" <ji...@apache.org> on 2019/09/23 14:49:00 UTC
[jira] [Resolved] (AIRFLOW-3026) running initdb with default
parameters will cause unhandled exception in models.py
[ https://issues.apache.org/jira/browse/AIRFLOW-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor resolved AIRFLOW-3026.
----------------------------------------
Resolution: Cannot Reproduce
Not a problem anymore
> running initdb with default parameters will cause unhandled exception in models.py
> ----------------------------------------------------------------------------------
>
> Key: AIRFLOW-3026
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3026
> Project: Apache Airflow
> Issue Type: Bug
> Components: models
> Affects Versions: 1.9.0, 1.10.0
> Reporter: Shawn Dion
> Priority: Major
>
> the default fernet key is:
> fernet_key = cryptography_not_found_storing_passwords_in_plain_text
>
> when running airflow initdb:
> {code:java}
> File "/home/usr/.local/lib/python3.6/site-packages/airflow/models.py", line 160, in get_fernet
> _fernet = Fernet(configuration.conf.get('core', 'FERNET_KEY').encode('utf-8'))
> File "/usr/local/lib64/python3.6/site-packages/cryptography/fernet.py", line 34, in __init__
> key = base64.urlsafe_b64decode(key)
> File "/usr/lib64/python3.6/base64.py", line 133, in urlsafe_b64decode
> return b64decode(s)
> File "/usr/lib64/python3.6/base64.py", line 87, in b64decode
> return binascii.a2b_base64(s)
> binascii.Error: Incorrect padding
> {code}
>
> TypeError and ValueError were handled in V1.9 but his error binascii.Error is not handled correctly / at all.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)