ZF-2044: Zend_Rest_Client broken?
Description
Zend_Rest_Client seems to be broken, or I might have misunderstood the way it works.
Test:
Create rest server using Zend_Rest_Server based on a class, exposing 1 method:
parrot($text), returning the input text
Then test calling method directly through url:
http:///server.php?method=parrot&arg1=This%20is%20my%20string
and using Zend_Rest_Client:
$rest = new Zend_Rest_Client($server); echo $rest->parrot('This is my string')->get();
2nd one fails.
I have attached client and server files to demonstrate the issue.
Comments
Posted by Julien SERDARU (jserdaru) on 2007-10-05T04:07:22.000+0000
client file for test
Posted by Julien SERDARU (jserdaru) on 2007-10-05T04:07:41.000+0000
server file for test
Posted by Thomas Weidner (thomas) on 2007-10-15T13:51:40.000+0000
Assigned to Davey
Posted by Jean-Marc Fontaine (jmf) on 2008-04-03T14:06:28.000+0000
The bug still exists 6 months later in the version 1.5.
The lines 239 to 242 from the class Zend_Rest_Client seem to be the cause of the bug
In fact I do not see what these lines are supposed to do. Removing them fixes the bug.
Posted by Herbert G. Fischer (hgfischer) on 2008-06-04T11:46:42.000+0000
Looks like issues ZF-2467, ZF-2215, ZF-2044 are all related to this problem.
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-10-09T06:20:32.000+0000
Does it depend on ZF-4089, doesn't it?
Posted by old of Satoru Yoshida (yoshida@zend.co.jp) on 2008-10-20T06:12:16.000+0000
I will be happy if you see and comment on ZF-2215.
Posted by Wil Sinclair (wil) on 2008-11-13T14:10:09.000+0000
Changing issues in preparation for the 1.7.0 release.