Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.2

Bug #16782 HTTP_OAuth_Consumer::sendRequest() can`t handling GET request with parameters
Submitted: 2009-11-12 13:55 UTC
From: stseira Assigned: jeffhodsdon
Status: Closed Package: HTTP_OAuth (version 0.1.4)
PHP Version: 5.2.1 OS: Ubuntu 9.10
Roadmaps: (Not assigned)    
Subscription  


 [2009-11-12 13:55 UTC] stseira (Alex Jeong)
Description: ------------ When 'HTTP_OAuth_Consumer::sendRequest()' executed with GET request.. If this code have additional parameters as method`s argument, they can`t append to url as query string, but these parameters applied to making oauth signature. So these parameters can`t be sended to service provider, and these can`t be known by server to make signature base string. As a result, consumer`s signautre and provider`s signature can`t be same. Test script: --------------- (..) $consumer = new HTTP_OAuth_Consumer(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET); $response = $consumer->sendRequest('http://prodiver.com/api/echo', array('foo' => 'bar'), 'GET'); (..) Expected result: ---------------- consumer object should append parameters to request url. and no parameters included to making signature (these aleady contained to url) Actual result: -------------- no parameters appended to request url. and these parameters included to making oauth signature

Comments

 [2009-11-14 06:09 UTC] jeffhodsdon (Jeff Hodsdon)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: jeffhodsdon
Verified this as an issue
 [2009-11-20 05:17 UTC] jeffhodsdon (Jeff Hodsdon)
-Status: Assigned +Status: Closed
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ Fixed in 0.1.5. Thanks much for the report!