ZF-1714: getUserPosts() defaults to retrieving zero posts if no count is specified

Issue Type: Bug Created: 2007-07-12T15:28:03.000+0000 Last Updated: 2008-01-23T18:32:34.000+0000 Status: Resolved Fix version(s): - 1.0.1 (30/Jul/07)

Reporter: Darby Felton (darby) Assignee: Goran Hacek (ghacek) Tags: - Zend_Service_Delicious

Related issues: - ZF-1735



From the original thread on fw-general:

bq. Hey guys,

bq. I'm currently trying to figure out Zend_Service_Delicious. I really don't want to do anything complicated, just fetch a user's public posts. According to the manual, this should work nicely:


<pre class="highlight">
$feed = new Zend_Service_Delicious();
$posts = $feed->getUserPosts('mwolff');
foreach($posts as $item) {
    echo "

"; print_r($item); echo "\n


bq. After the call to getUserPosts(), $posts does contain a Zend_Service_Delicious_PostList object. The following iteration, however, yields no results whatsoever.

bq. This is with a checkout of trunk from Monday. What am I doing wrong? Am I doing anything wrong??

bq. Thanks, bq. Markus


Posted by Darby Felton (darby) on 2007-07-12T15:29:25.000+0000

Instead, the getUserPosts() method should default to a sane value, such as 10 or 15 or all posts (if supported by API).

Posted by Goran Hacek (ghacek) on 2007-07-17T15:38:55.000+0000

When retrieving posts with getUserPosts() and no post count specified method returns 15 posts. This is default for web service.

Post count isn't a problem in this case, JSON component is to blame. As it seems JSON decoder method has some problems with char "»"(ascii 187). When running provided code returns a post that has a title "Jack Slocum\'s Blog » Preview: Drag and Drop enhancements and the new TreePanel" on which JSON decoder fails.

I have created a new issue (ZF-1735) for this problem with JSON component.

Posted by Goran Hacek (ghacek) on 2007-07-18T05:16:18.000+0000

The problem is now fixed in SVN. Delicious component now forces use of Zend_Json_Decoder and bypasses use of JSON pecl extension (if it exists) which has some problems with feeds.

Posted by Darby Felton (darby) on 2007-07-18T08:59:13.000+0000

Updating fixed version to 1.1.0 since the change has not yet been merged to the 1.0.x release branch.

Posted by Goran Hacek (ghacek) on 2007-07-19T15:15:41.000+0000

Changes have been merged to release-1.0 from the trunk, so changing fix version respectively.

Posted by Wil Sinclair (wil) on 2008-01-23T18:32:34.000+0000

Updating Fix Version to follow issue tracker conventions.

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.