zope.publisher.http.HTTPInputStream Bug
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Zope 3 | Status tracked in 3.4 | |||||
3.2 |
Confirmed
|
Medium
|
Unassigned | |||
3.3 |
Confirmed
|
Medium
|
Unassigned | |||
3.4 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
2006-01-20T14:47:27 ERROR SiteError http://
Traceback (most recent call last):
File "/home/
request.
File "/home/
fs = FieldStorage(fp=fp, environ=
File "/home/
self.
File "/home/
environ, keep_blank_values, strict_parsing)
File "/home/
self.
File "/home/
self.
File "/home/
self.
File "/home/
line = self.fp.
TypeError: readline() takes exactly 1 argument (2 given)
This is related to Python bug [ 1112549 ] "cgi.FieldStorage memory usage can spike in line-oriented ops". sourceforge. net/tracker/ index.php? func=detail& aid=1112549& group_id= 5470&atid= 105470
http://
Andrew was running a version of Python with that patch applied. I know this because he's a coworker and i have the same buildout :)
If the Python patch is ever committed (hint hint), Zope will need to be patched before we can use that Python release, so that the stream's readline() method takes a size hint. Something like the attached patch to lib/python/ zope/publisher/ http.py. Should be safe to patch zope even without the Python patch, it will just fail to prevent the python bug.