[Zope] Problem with Zope and Proxy server

Duncan Booth duncan@rcp.co.uk
Tue, 17 Aug 1999 12:36:03 +0000


> Well, it seems like the proxy is cutting of the 
> value=123
> content.
> 
> And ZOPE is complaining, that the proxy request doesn't contain the
> declared data.
> 
> Andreas
> 
Close, but it is actually that the proxy is appending \r\n\0  to the 
data, and Zope is getting confused.
> > 'value=123\015\012\015\012\000'

A bit more investigation, and what I think is happening is that Zope 
receives and processes the request, then it finds the extra '\000' on 
the end of the data and tries to process that as another request. Not 
surprisingly this fails, (a tuple unpack throws an exception) but all of 
the side effects from the original request have been committed as 
though the request had succeeded.

-- 
Duncan Booth                                             duncan@dales.rmplc.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
http://dales.rmplc.co.uk/Duncan