Bug #16499 [Asn->WFx]: signature implementation mismatch
| From: | hostmaster at shupp dot org | Date: | Sat, 05 Jun 2010 20:03:05 +0000 |
| Subject: | Bug #16499 [Asn->WFx]: signature implementation mismatch | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3881@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=16499&edit=1
ID: 16499
Updated by: hostmaster@shupp.org
Reported By: david at papayasoft dot com
Summary: signature implementation mismatch
-Status: Assigned
+Status: Wont fix
Type: Bug
Package: Services_Digg
Operating System: WinXP
Package Version: 0.4.7
PHP Version: 5.2.5
Assigned To: shupp
Roadmap Versions:
New Comment:
-Status: Assigned
+Status: Wont fix
This package is being deprecated, and superseded by Services_Digg2.
Previous Comments:
------------------------------------------------------------------------
[2009-08-10 23:57:57] shupp
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: shupp
------------------------------------------------------------------------
[2009-08-08 12:51:19] papayasoft
Description:
------------
The class Services_Digg_Story has several methods that accept a $story
parameter, presumably a story id. But the implementation of thoe methods
uses $this->id, not the passed $story id.
Must be a typo.
Test script:
---------------
require_once('Services/Digg.php');
Services_Digg::$appKey = 'http://example.com/';
Services_Digg::$uri = 'http://services.digg.com';
$request = Services_Digg::factory('Story')->getDiggActivity(8507815);
Expected result:
----------------
The requested story exists, so $request should be a valid instance of
DiggAPIActivity.
Actual result:
--------------
Results in a 404 Exception as the script attempts to access the
endpoint url http://services.digg.com/story//activity/diggs
Note the blank // in the url. This is precisely where the code is using
$this->id rather than the $story id passed as a param.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=16499&edit=1