Fernando Barbosa created AIRFLOW-3483:
-----------------------------------------

             Summary: Can't authentication with Google Oauth 
(UnicodeDecodeError: 'utf8' codec can't decode byte)
                 Key: AIRFLOW-3483
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3483
             Project: Apache Airflow
          Issue Type: Bug
          Components: authentication
    Affects Versions: 1.10.1
         Environment: Amazon Linux AMI 2018.03
Python 2.7.14
            Reporter: Fernando Barbosa
         Attachments: airflow-login-err.log

After updating our Airflow installation from 1.8.0 to 1.10.0 (tried 1.10.1 as 
well) users with non-ascii charts (i.e. á, é, ã) on their usernames can't 
authenticate anymore through Google Oauth.

Users were already on the mysql database from before the upgrade. The mysql 
database is encoded as latin1. I've tried setting the users table encoding to 
utf-8 and it didn't fix the problem. I've also tried to explicitly set 
'sql_engine_encoding = utf-8' and it didn't fix it either. I've also tried 
reinstalling with both 'unidecode' and 'text-unidecode' libs and it didn't 
change.

It seems somewhat similar to this bug: 
https://jira.apache.org/jira/browse/AIRFLOW-2192

Attached are the logs a colleague (José Araújo) gets after authenticating, when 
the front page loads.



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

Reply via email to