cubicweb-signedrequest #4106294 crash parsing Authorization header [resolved]

$ curl -H 'Authorization: Cubicweb:foobarbaz' -D - https://www.cubicweb.org/
HTTP/1.1 500 Internal Server Error
Date: Fri, 04 Jul 2014 14:17:39 GMT
Server: TwistedWeb/12.0.0
Content-Type: text/html
Via: 1.1 www.cubicweb.org
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

<pre>Traceback (most recent call last):
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/etwist/server.py&quot;, line 127, in render_request
    return self._render_request(request)
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/etwist/server.py&quot;, line 152, in _render_request
    content = self.appli.handle_request(req, path)
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/web/application.py&quot;, line 342, in main_handle_request
    session = self.get_session(req)
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/web/application.py&quot;, line 294, in get_session
    return self.session_handler.get_session(req)
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/web/application.py&quot;, line 220, in get_session
    session = self.open_session(req)
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/web/application.py&quot;, line 229, in open_session
    session = self.session_manager.open_session(req)
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/web/views/sessions.py&quot;, line 76, in open_session
    session, login = self.authmanager.authenticate(req)
  File &quot;/usr/lib/python2.7/dist-packages/cubicweb/web/views/authentication.py&quot;, line 153, in authenticate
    login, authinfo = retriever.authentication_information(req)
  File &quot;/usr/share/cubicweb/cubes/signedrequest/views.py&quot;, line 56, in authentication_information
    login, signature = self.parse_authorization_header(req)
  File &quot;/usr/share/cubicweb/cubes/signedrequest/views.py&quot;, line 80, in parse_authorization_header
    method, credentials = header.split(None, 1)
ValueError: need more than 1 value to unpack
prioritynormal
typebug
done in0.1.3
load0.250
load left0.000
closed by#6d8c4a3a6c48 [views] parse Authorization header more carefully
patch[views] parse Authorization header more carefully [applied]