zope.publisher-3.4.0b1_r76188-py2.4 egg causes server error.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
My buildout update the zope.publisher egg to
zope.publisher-
zope.publisher-
and I have pasted the traceback below.
The change between 3.4.0a1 and 3.4.0b1 that causes a server error is in
class HTTPInputStream in file http.py where an additional check for
content size from environment[
returns an empty string rather than None (as returned from
environment[
works where my addition is to check also for empty string:
def __init__(self, stream, environment):
self.stream = stream
size = environment.
if size is None or size == '': # my change to correct error
size = environment.
if size is None or int(size) < 65536:
else:
Traceback:
ERROR:root:
File
"/opt/buildout/
line 126, in runWSGIApp
File
"/usr/lib/
return self.applicatio
File
"/usr/lib/
line 202, in __call__
return app(environ, start_response)
File "/opt/tfws/
in __call__
status, headers, body = self.rebuild_
File "/opt/tfws/
in rebuild_check
start_response)
File
"/usr/lib/
line 539, in intercept_output
app_iter = application(
File
"/opt/buildout/
File
"/opt/buildout/
File
"/opt/buildout/
File
"/opt/buildout/
File
"/opt/buildout/
ValueError: invalid literal for int():
I committed a fix in r77464 and released a zope.publisher 3.4.0b2 egg subsequently to http:// download. zope.org/ distribution