Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6865

[Airflow] webserver crashes with both RBAC and 'force_log_out_after' set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10.9
    • Fix Version/s: None
    • Component/s: webserver
    • Labels:
      None

      Description

      To reproduce:

      • activate authentication (AIRFLOW_WEBSERVER_AUTHENTICATE = True)
      • activate RBAC (AIRFLOW_WEBSERVER_RBAC = True)
      • set AIRFLOW_WEBSERVER_FORCE_LOG_OUT_AFTER to something different than the default 0 (example: 5 minutes)

      I've traced back the issue to the following commit:

      https://github.com/apache/airflow/commit/0721d62bf1b23a471d7fe97ccf108db9f92403ef

      [2020-02-20 16:43:54,426] {{app.py:1891}} ERROR - Exception on /health [GET]
      Traceback (most recent call last):
        File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
          response = self.full_dispatch_request()
        File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
          rv = self.handle_user_exception(e)
        File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
          reraise(exc_type, exc_value, tb)
        File "/usr/local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
          raise value
        File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 1947, in full_dispatch_request
          rv = self.preprocess_request()
        File "/usr/local/lib/python3.7/site-packages/flask/app.py", line 2241, in preprocess_request
          rv = func()
        File "/usr/local/lib/python3.7/site-packages/airflow/www_rbac/app.py", line 246, in before_request
          flask.session.permanent = True
      NameError: name 'flask' is not defined
      

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nbardelot Noël BARDELOT
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: