ZF-8757: Zend_Json_Server_Response should return null for error if there is no error
Description
When there is no error, Zend_Json_Server_Response will not return it, however in the JSON-RPC specification if there is no error it must be returned as null.
Comments
Posted by Satoru Yoshida (satoruyoshida) on 2010-01-11T18:29:33.000+0000
I set component and auto-reassign.
Posted by Steven Brown (monaro) on 2010-01-11T23:14:33.000+0000
This appears to be fixed in trunk
Posted by Brian Malkowski (bmalkowski) on 2010-01-28T08:59:00.000+0000
While the code in trunk appears fix the JSON-RPC 1.0 spec, it unfortunately seems to break the JSON-RPC 2.0:
bq. Exactly one of result or error MUST be specified. It's not allowed to specify both or none.
http://groups.google.com/group/json-rpc/….
The old code followed the 2.0 spec.
Posted by Jamie Sutherland (jsutherland) on 2011-02-02T04:52:10.000+0000
This patch should allow the server to respond correctly to 1.0 and 2.0 specification requests.