Ticket #541 (defect)
Opened 2 years ago
Last modified 2 years ago
_wsgiserver doesn't support full URLs in the request_line
Status: closed (fixed)
| Reported by: | jtate | Assigned to: | rdelon |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | CherryPy code | Keywords: | |
| Cc: |
The following request line will always result in an unlogged 404.
POST http://localhost:8000/rAA/entwebui/EntitledCustomers/ HTTP/1.0
I will attach a patch shortly that fixes this issue, and provides fuller support for the wsgi interface using urlparse instead of str.split() to parse the request_line.
There are a few things still to do, but I wanted to get this up here in case someone else has time to fix it before I do.
Attachments
Change History
07/20/06 02:30:34: Modified by jtate
- attachment wsgipatch added.
07/20/06 09:53:15: Modified by jtate
The schema line in the above will not work with normal path only request lines. Instead a structure like the following needs to be used.
scheme, serverloc, path, params, qs, fragment = urlparse.urlparse(path)
if scheme:
self.environ["wsgi.url_scheme"] = scheme
07/20/06 11:00:02: Modified by fumanchu
A test which demonstrates the problem is probably in order; that would also allow it to be tested with various HTTP servers.
08/12/06 01:16:54: Modified by fumanchu
This was fixed in CP 3 in [1224].
08/12/06 01:43:16: Modified by fumanchu
- status changed from new to closed.
- resolution set to fixed.
Fixed in [1238].


Patch (vs 2.2.x svn) to fix url handling in the request_line