openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #13578
[Bug 1023429] Re: xmlrpc errors not following standard
if you use the attached file you will get the following error:
Traceback (most recent call last):
File "create_partner_nofields.py", line 15, in <module>
sock = xmlrpclib.ServerProxy('%s/xmlrpc/common'%host)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1541, in __init__
raise IOError, "unsupported XML-RPC protocol"
IOError: unsupported XML-RPC protocol
if you put a proxy in the middle, you will notice that the returned xml
exception is not in the correct format.
** Attachment added: "create_partner_nofields.py"
https://bugs.launchpad.net/openobject-server/+bug/1023429/+attachment/3221039/+files/create_partner_nofields.py
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1023429
Title:
xmlrpc errors not following standard
Status in OpenERP Server:
Incomplete
Bug description:
When creating a partner with no fields, the xmlrpc response is below. not that the fault code should be a number as per spec. the fault string is empty.
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value>
<string>warning -- Integrity Error
The operation cannot be completed, probably due to the following: - deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set [object with reference: name - name]</string>
</value>
</member>
<member>
<name>faultString</name>
<value>
<string />
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1023429/+subscriptions
References