← Back to team overview

openerp-india team mailing list archive

[Bug 1023429] Re: xmlrpc errors not following standard

 

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):
  File "test.py", line 36, in <module>
    sock.execute(dbname, uid, pwd, 'res.partner', 'create', meet)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
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!


** Changed in: openobject-server
       Status: New => Incomplete

-- 
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