[Patches] [ python-Patches-764470 ] Bugfix for incorrect xmlrpclib.Fault representation
SourceForge.net
noreply@sourceforge.net
Wed, 02 Jul 2003 02:06:00 -0700
Patches item #764470, was opened at 2003-07-02 12:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=764470&group_id=5470
Category: Library (Lib)
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Gavrie Philipson (gavrie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bugfix for incorrect xmlrpclib.Fault representation
Initial Comment:
The xmlrpclib library represents a Fault object with an extraneous
'args' member field.
The reason for this is that the dump function blindly marshals all
variables of the Fault object, and since Fault is a subclass of
Exception it inherits the 'args' attribute.
According to the XML-RPC spec, adding additional fields to a Fault
response is not allowed.
The attached patch is a simple solution to the problem.
Sample Fault XML output that shows the problem:
<?xml version='1.0'?>
<methodResponse>
<fault>
<value><struct>
<member>
<name>faultCode</name>
<value><int>900</int></value>
</member>
<member>
<name>args</name>
<value><array><data>
</data></array></value>
</member>
<member>
<name>faultString</name>
<value><string>boo</string></value>
</member>
</struct></value>
</fault>
</methodResponse>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=764470&group_id=5470