What steps will reproduce the problem?
1. Send an XML-RPC request which results in a response containing a
<boolean> value
2. Inspect corresponding value in the object passed to the onSuccess function
3. value is always true
What is the expected output? What do you see instead?
<boolean>0</boolean> -> false
<boolean>1</boolean> -> true
What version of the product are you using? On what operating system?
Mac OS X 10.4.10, Firefox 2.0.0.7, json-xml-rpc javascript client 0.8
Please provide any additional information below.
Bug is due to the fact that Boolean("0") evaluates to true in JavaScript as
per spec. Line 844 in json-xml-rpc.js should read
return Boolean(parseInt(typeEL.firstChild.nodeValue));
instead of
return Boolean(typeEL.firstChild.nodeValue);
Original issue reported on code.google.com by bierb...@in.tum.de on 28 Sep 2007 at 10:25
Original issue reported on code.google.com by
bierb...@in.tum.de
on 28 Sep 2007 at 10:25