← Back to team overview

openerp-india team mailing list archive

[Bug 1023429] Re: xmlrpc errors not following standard

 

*** This bug is a duplicate of bug 257581 ***
    https://bugs.launchpad.net/bugs/257581

Hi Marcos,

This is a duplicate of very old bug 257581. As the bug status indicates,
it was fixed as of OpenERP 6.1, but you may not have noticed it because
the old XML-RPC API is still present for backwards compatibility.

The old API (v0) was routed through /xmlrpc, whereas the new XML-RPC API
(v1) is available at /openerp/xmlrpc/1. You will get standard XML-RPC
faults if you use the new one. For more information see tests/common.py
or openerp/wsgi/core.py in the 6.1 server code.

** This bug has been marked a duplicate of bug 257581
   xml-rpc error code must be an int and not a string

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

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