Issues

ZF-8757: Zend_Json_Server_Response should return null for error if there is no error

Issue Type: Bug Created: 2010-01-08T18:14:44.000+0000 Last Updated: 2011-02-02T04:52:15.000+0000 Status: Open Fix version(s): Reporter: Steven Brown (monaro) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Json_Server

Related issues: Attachments: - zf-8757.diff

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.

http://json-rpc.org/wiki/specification/…

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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts