You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Oleg Yamin (JIRA)" <ji...@apache.org> on 2018/05/03 19:01:00 UTC

[jira] [Created] (AIRFLOW-2414) Fix RBAC log display

Oleg Yamin created AIRFLOW-2414:
-----------------------------------

             Summary: Fix RBAC log display
                 Key: AIRFLOW-2414
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2414
             Project: Apache Airflow
          Issue Type: Bug
          Components: webserver
    Affects Versions: 1.10.0
            Reporter: Oleg Yamin
            Assignee: Oleg Yamin
             Fix For: 1.10.0


Getting the following error when trying to view the log file in new RBAC UI.
{code:java}
[2018-05-02 17:49:47,716] ERROR in app: Exception on /log [GET]
Traceback (most recent call last):
 File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
 response = self.full_dispatch_request()
 File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
 rv = self.handle_user_exception(e)
 File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
 reraise(exc_type, exc_value, tb)
 File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
 rv = self.dispatch_request()
 File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
 return self.view_functions[rule.endpoint](**req.view_args)
 File "/usr/lib/python2.7/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
 return f(self, *args, **kwargs)
 File "/usr/lib/python2.7/site-packages/airflow/www_rbac/decorators.py", line 55, in wrapper
 return f(*args, **kwargs)
 File "/usr/lib/python2.7/site-packages/airflow/utils/db.py", line 74, in wrapper
 return func(*args, **kwargs)
 File "/usr/lib/python2.7/site-packages/airflow/www_rbac/views.py", line 456, in log
 logs = log.decode('utf-8')
AttributeError: 'list' object has no attribute 'decode'{code}



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