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

[jira] [Created] (AIRFLOW-3026) running initdb with default parameters will cause unhandled exception in models.py

Shawn Dion created AIRFLOW-3026:
-----------------------------------

             Summary: 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.10.0, 1.9.0
            Reporter: Shawn Dion


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
(v7.6.3#76005)