Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #851 (defect)

Opened 3 months ago

Last modified 2 months ago

malformed get request to wsgiserver results in traceback

Status: closed (fixed)

Reported by: guest Assigned to: fumanchu
Priority: low Milestone: 3.1
Component: wsgiserver Keywords:
Cc:

Found in version 3.1.0.

If you perform a malformed or incomplete GET request on a cherry wsgiserver, you'll get a traceback:

telnet zorander 10000
Trying 127.0.0.1...
Connected to zorander.
Escape character is '^]'.
GET /
HTTP/1.1 500 Internal Server Error
Content-Length: 660
Content-Type: text/plain

Traceback (most recent call last):
  File "/export/home/xxx/devel/pkg-tip/proto/root_i386/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/__init__.py", line 983, in communicate
    req.parse_request()
  File "/export/home/xxx/devel/pkg-tip/proto/root_i386/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/__init__.py", line 304, in parse_request
    self._parse_request()
  File "/export/home/xxx/devel/pkg-tip/proto/root_i386/usr/lib/python2.4/vendor-packages/cherrypy/wsgiserver/__init__.py", line 335, in _parse_request
    method, path, req_protocol = request_line.strip().split(" ", 2)
ValueError: need more than 2 values to unpack
Connection to zorander closed by foreign host.

Change History

08/28/08 15:39:09: Modified by guest

  • component changed from CherryPy code to wsgiserver.

09/27/08 16:05:03: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 3.1.

Fixed in [2041].

Hosted by WebFaction

Log in as guest/cpguest to create tickets