http() call containing header with no value causes AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.app.testing |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
It should be possible to use http() to test how well an application handles malformed HTTP requests -- such as a request containing an HTTP header that has no value.
Failed example:
page_
GET /+fhqwhgads HTTP/1.1
Referer:
"""))
Exception raised:
Traceback (most recent call last):
File "[...]/
File "<doctest notfound-
File "[...]", line 47, in __call__
return HTTPCaller.
File "[...]/
headers = [split_
File "[...]/
return headerre.
AttributeError: 'NoneType' object has no attribute 'group'
Changed in zope3: | |
status: | New → Won't Fix |
Malformed HTTP requests won't make it to the application as Zope needs to parse them already and I expect those to end in an HTTP 400/Bad request response without ever getting to the application.