xmlrpc errors not following standard
This bug report was converted into a question: question #202983: xmlrpc errors not following standard.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
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>
<value>
<
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>
<value>
<string />
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>
Changed in openobject-server: | |
status: | Incomplete → Invalid |
Hello Marcos Mendez,
I tried as your given code with script its giving me a traceback but I did
not get found <name> fault Code </name> and as per
trackback it comes from python xmlrpclib.py.
Traceback (most recent call last): execute( dbname, uid, pwd, 'res.partner', 'create', meet) python2. 6/xmlrpclib. py", line 1199, in __call__ send(self. __name, args) python2. 6/xmlrpclib. py", line 1489, in __request self.__ verbose python2. 6/xmlrpclib. py", line 1253, in request response( h.getfile( ), sock) python2. 6/xmlrpclib. py", line 1392, in _parse_response python2. 6/xmlrpclib. py", line 838, in close *self._ stack[0] )
File "test.py", line 36, in <module>
sock.
File "/usr/lib/
return self.__
File "/usr/lib/
verbose=
File "/usr/lib/
return self._parse_
File "/usr/lib/
return u.close()
File "/usr/lib/
raise Fault(*
xmlrpclib.Fault: <Fault 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]: ''>
So would you please provide detail info regarding this issue.
Thank You!