c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #00531
[Bug 631076] Re: [5.0.14] osv.orm.browse_null in xmlrpc message breaks server communication
Hello Stefan,
If possible, can you share that code?
Xml-RPC cannot allow None,browse_null kind of values to be parsed.
On a quick note, the code should be corrected such a way to pass
readable values to client.
Thanks.
** Changed in: openobject-server
Status: New => Incomplete
--
[5.0.14] osv.orm.browse_null in xmlrpc message breaks server communication
https://bugs.launchpad.net/bugs/631076
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP OpenObject.
Status in OpenObject Server: Incomplete
Bug description:
My custom code stopped working in 5.0.14. I am looking up another object's country_id in a function field. The other object is retrieved through a browse action. This used to result in a False value in the XMLRPC communication if the otherobject's country_id was not defined (5.0.12). In 5.0.14 I get a osv.orm.browse_null value at the server side, which is not send back to the client. Instead, I get a server side exception, and the client hangs.
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/oervrs2dev/releases/openerp-server-5.0.14/bin/netsvc.py", line 411, in run
ts.mysend(result)
File "/home/oervrs2dev/releases/openerp-server-5.0.14/bin/tiny_socket.py", line 50, in mysend
msg = cPickle.dumps([msg,traceback])
File "/usr/lib/python2.5/copy_reg.py", line 83, in _reduce_ex
dict = getstate()
TypeError: 'bool' object is not callable
It is the msg variable that contains references to the browse_null value now, where it used to say "False". Please confirm this is a feature, not a bug and I will gladly update my code. However, for now I am tempted to think that I should be able to assign one uninitialized country_id to another.