Issue #851 resolved

malformed get request to wsgiserver results in traceback

guest avatarguest created an issue

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. }}}

Comments (3)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.