ZF-8467: A Feed's Categories should not include its Entry's Categories

Issue Type: Bug Created: 2009-12-04T08:00:18.000+0000 Last Updated: 2009-12-20T16:22:43.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Bradley Holt (bradley.holt) Assignee: Pádraic Brady (padraic) Tags: - Zend_Feed_Reader

Related issues: Attachments:


When using Zend_Feed_Reader with an Atom Feed (this may be true with RSS too, but I'm not certain) the list of Feed Categories includes all of its Entry's Categories. According to the Atom Syndication Format the the "atom:feed" element can optionally have its own categories as distinct from the categories of the Entries that may happen to be contained in that Feed. I believe this is a problem with the XPath query used to retrieve a Feed's Categories in Zend_Feed_Reader_Extension_Atom_Feed. Please modify this so that Feed-level Categories are independent of Entry-level categories. Since many feeds don't have Feed level Categories, the list of Categories should be empty for these feeds.


Posted by Pádraic Brady (padraic) on 2009-12-20T16:22:40.000+0000

Fixed in r19823. I restricted the XPath query string which was "//atom:category" thus collecting all such elements in error to "/atom:category" which is restricted to single-level child elements as would be correct.

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.