Merge lp://qastaging/~akretion-team/openobject-server/xmlrpc-fixes into lp://qastaging/openobject-server
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Olivier Dony (Odoo) | ||||
Proposed branch: | lp://qastaging/~akretion-team/openobject-server/xmlrpc-fixes | ||||
Merge into: | lp://qastaging/openobject-server | ||||
Diff against target: |
15 lines (+4/-1) 1 file modified
bin/service/http_server.py (+4/-1) |
||||
To merge this branch: | bzr merge lp://qastaging/~akretion-team/openobject-server/xmlrpc-fixes | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Dony (Odoo) | Disapprove | ||
Christophe Simonis (OpenERP) | Disapprove | ||
Stephane Wirtel (OpenERP) | Approve | ||
Review via email: mp+27900@code.qastaging.launchpad.net |
Description of the change
Please read the bug report here https:/
This is specially annoying for OpenERP non Python clients such as OOOR. It looks like Python xmlrpclib can live with a string error code, so I applied jsh patch that let the behavior unchanged for the Python world but is a lifesaver for the other libraries. I could test it successfully with OOOR for instance.
Eventually you could choose to move all the error codes to an int even for Python, but that's up to you and would in that case require minor changes in the clients (but may bay v6 is the opportunity). At least it would be great if you could merge that.
Thanks
Unmerged revisions
- 2389. By Raphaël Valyi - http://www.akretion.com
-
[FIX] take advantage of new release to fix long-standing disrepect of XML/RPC standard protocol for error codes: https:/
/bugs.launchpad .net/openobject -server/ +bug/257581
This is an awful hack.
The behavior will be different between clients...
The way OpenERP reports errors to clients can be updated to provide a real FaultCode that mean something (maybe depending of the Exception type).