XMLRPC + WSGI
Bug #332063 reported by
Martijn Faassen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BlueBream |
Fix Committed
|
Medium
|
Baiju Muthukadan | ||
Zope 3 |
Won't Fix
|
Undecided
|
Zope 3 Developers | ||
grok |
Fix Released
|
Critical
|
Unassigned | ||
zope.publisher |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
XMLRPC is broken in a WSGI environment.
We should add a test to grok that demonstrates this brokenness and then fix the bug.
Related branches
Changed in grok: | |
assignee: | nobody → d2m |
importance: | Undecided → Critical |
milestone: | none → 1.0 |
tags: | added: europython2009 |
Changed in grok: | |
status: | Fix Committed → Fix Released |
importance: | Critical → High |
Changed in zope3: | |
assignee: | nobody → Zope 3 Developers (zope3-dev) |
Changed in bluebream: | |
assignee: | nobody → Baiju Muthukadan (baijum) |
Changed in grok: | |
assignee: | Michael Haubenwallner (d2m) → nobody |
Changed in bluebream: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in zope3: | |
status: | New → Won't Fix |
Changed in grok: | |
status: | Confirmed → Fix Committed |
Changed in zope.publisher: | |
status: | New → Fix Committed |
Changed in bluebream: | |
status: | Confirmed → Fix Committed |
tags: | added: bugday20100424 |
Changed in zope.publisher: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix:
In zope.publisher. xmlrpc. XMLRPCRequest. processInputs self._body_ instream. readlines( )) self._body_ instream. readlines( self._body_ instream. size))
replace
lines = ''.join(
by
lines = ''.join(
works with both zopectl (twisted) and paster setup
The problem is with the signature of zope.publisher. http.HTTPInputS tream.readlines :
def readlines(self, hint=0): readlines( hint)
self.cacheStre am.write( ''.join( data))
data = self.stream.
return data
Apparently reading 0 from twisted's BufferedStream works, but fails on wsgi.input <socket._fileobject object>
How to proceed - should we create a new zope.publisher release and change groks versions.cfg?