ZF-11345: XmlRpc-Server Multicall - invalid response

Issue Type: Bug Created: 2011-05-05T06:45:11.000+0000 Last Updated: 2011-05-05T06:45:11.000+0000 Status: Open Fix version(s): Reporter: Christian Schuhbaum (c.schuhbaum) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_XmlRpc_Server

Related issues: Attachments:


We found a little bug in the implementation of the system.multicall() functionality of the class "Zend_XmlRpc_Server_System".

As you can see on… every response of a multicall should be packed inside a one-element array: "Notice that regular return values are always nested inside a one-element array. This allows you to return structs from functions without confusing them with faults."

In the Zend/XmlRpc/Server/System.php file on line 145 (ZF version 1.11.5) is this line: "$responses[] = $response->getReturnValue();"

This snippet would add the return value of a xmlrpc-method as plaintext to the responses-array like this example, not as a one-element array, as the client would expect.

So the only thing, we have to change is this line to the following: "$responses[] = array($response->getReturnValue());"


No comments to display

Have you found an issue?

See the Overview section for more details.


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

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