Comment 0 for bug 142832

Revision history for this message
netchan (netchan) wrote :

Uploaded: Zope_lib_python_ZPublisher_xmlrpc_py.diff

When trying to access a nonexistent object/method, lib/python/ZPublisher/xmlrpc.py sets the status code 200 and sends back a regular xml-rpc Fault, with the standard 'Cannot locate object' message in html format as the body of the Fault.
The attached patch solves the problem if the variable 't' in method 'exception' is a zException.NotFound. Additional check for t=='NotFound' might be necessarry.