Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-5848

[core] Auto logout window can trigger an infinite loop on /notebook/api/notebook/close

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.12.0
    • Fix Version/s: 4.0.0
    • Component/s: core.ui
    • Labels:
      None

      Description

      Was on editor page, asking to reload the page

      ----------------------------------------
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      Traceback (most recent call last):
        File "/usr/lib/python2.7/wsgiref/handlers.py", line 86, in run
          self.finish_response()
        File "/usr/lib/python2.7/wsgiref/handlers.py", line 128, in finish_response
          self.write(data)
        File "/usr/lib/python2.7/wsgiref/handlers.py", line 212, in write
          self.send_headers()
        File "/usr/lib/python2.7/wsgiref/handlers.py", line 270, in send_headers
          self.send_preamble()
        File "/usr/lib/python2.7/wsgiref/handlers.py", line 197, in send_preamble
          self._write('Server: %s\r\n' % self.server_software)
        File "/usr/lib/python2.7/socket.py", line 324, in write
          self.flush()
        File "/usr/lib/python2.7/socket.py", line 303, in flush
          self._sock.sendall(view[write_offset:write_offset+buffer_size])
      error: [Errno 32] Broken pipe
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 500 59
      ----------------------------------------
      Exception happened during processing of request from ('127.0.0.1', 43965)
      Traceback (most recent call last):
        File "/usr/lib/python2.7/SocketServer.py", line 593, in process_request_thread
          self.finish_request(request, client_address)
        File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
          self.RequestHandlerClass(request, client_address, self)
        File "/home/romain/projects/hue/build/env/local/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/servers/basehttp.py", line 126, in __init__
          super(WSGIRequestHandler, self).__init__(*args, **kwargs)
        File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__
          self.finish()
        File "/usr/lib/python2.7/SocketServer.py", line 710, in finish
          self.wfile.close()
        File "/usr/lib/python2.7/socket.py", line 279, in close
          self.flush()
        File "/usr/lib/python2.7/socket.py", line 303, in flush
          self._sock.sendall(view[write_offset:write_offset+buffer_size])
      error: [Errno 32] Broken pipe
      ----------------------------------------
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] access       DEBUG    127.0.0.1 -anon- - "GET /accounts/login/ HTTP/1.1"
      [15/Feb/2017 13:00:25 +0000] decorators   INFO     AXES: Calling decorated function: dt_login
      [15/Feb/2017 13:00:25] "GET /accounts/login/?next=/notebook/editor%3Feditor%3D61166 HTTP/1.1" 200 70518
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "GET /notebook/editor?editor=61166 HTTP/1.1" 302 0
      [15/Feb/2017 13:00:25 +0000] access       DEBUG    127.0.0.1 -anon- - "GET /accounts/login/ HTTP/1.1"
      [15/Feb/2017 13:00:25 +0000] decorators   INFO     AXES: Calling decorated function: dt_login
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/api/notebook/close
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "POST /notebook/api/notebook/close HTTP/1.1" -- login redirection
      [15/Feb/2017 13:00:25] "POST /notebook/api/notebook/close HTTP/1.1" 200 20
      [15/Feb/2017 13:00:25 +0000] middleware   INFO     Redirecting to login page: /notebook/editor?editor=61166
      [15/Feb/2017 13:00:25 +0000] access       INFO     127.0.0.1 -anon- - "GET /notebook/editor HTTP/1.1" -- login redirect
      

        Attachments

          Activity

            People

            • Assignee:
              enricoberti Enrico Berti
              Reporter:
              romain Romain Rigaux
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: