Details
-
Type:
Patch
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.11.10
-
Fix Version/s: 1.11.11
-
Component/s: Zend_Json_Server
-
Tags:
Description
The server is adding result key in response even when it is error.
According to http://groups.google.com/group/json-rpc/web/json-rpc-2-0
This member MUST NOT exist if there was an error invoking the method.
So using most json rpc 2.0 clients will throw an exception.
I currently comment out
Zend/Json/Server/Response.php line 176 to make it work with jsonrpc clients.
– EDIT:
actually its same with error at line 184.
This member MUST NOT exist if there was no error triggered during invocation. - for error
I confirmed it. The opposite is also true: if a request is succesful, an error property is included in the response, while it MUST NOT. My next action will be to create a unit test that confirms both bugs.