Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 18810
Status: resolved
Left: 0 min
Priority: 0/0
Queue: XML-Feed

Owner: Nobody
Requestors: ryantate [...] ryantate.com
Cc:
AdminCc:

Severity: Important
Broken in: 0.08
Fixed in: (no value)



X History Display mode: Brief headersFull headers
#   Fri Apr 21 03:04:04 2006 guest - Ticket created  
Subject: Content of RSS entry disappears in as_xml
[text/plain 1.2k]
Content added to an RSS entry simply does not appear in the RSS feed
when the feed is rendered via ->as_xml. I suspect this has something to
do with XML::Feed's interaction with XML::RSS, particularly in how the
entry is structured. The content is visible in a Dumper dump of the
entry but somehow is not rendered.

(This is perl, v5.8.4 built for i386-linux-thread-multi)
(Linux li9-121 2.6.15-linode16 #1 Wed Jan 4 17:30:25 EST 2006 i686
GNU/Linux)

Here's a test case:

use strict;
use XML::Feed;
use Data::Dumper;


my $rss_feed = XML::Feed->new('RSS');
$rss_feed->title('Happy Feed');
$rss_feed->author('Ask Bjork Tate');
$rss_feed->link('http://nowhere.com');
$rss_feed->language('en-US');
$rss_feed->description('not existing since who knows when');

my $rss_entry = XML::Feed::Entry->new('RSS');
$rss_entry->title("Title is not always a required element in RSS2");
$rss_entry->content("But that's XML::RSS's problem. Oh, and this would
be an XML::Feed::Content item as specced in the docs, but there is no
constructor documented for XML::Feed::Content and I know this works
anyway.");

$rss_entry->link('http://nowhere.com/themiddle');

$rss_feed->add_entry($rss_entry);

print Dumper($rss_feed->entries);
print $rss_feed->as_xml, "\n\n\n";
print "it's broken\n" unless $rss_feed->as_xml =~ /problem/i;


#   Thu Oct 16 15:21:10 2008 SIMONW - Correspondence added  
[text/plain 134b]
I think this is fixed in 0.2

I've added a test for it in svn.

http://code.sixapart.com/svn/XML-Feed/trunk/t/09-missing-content-bug.t
#   Thu Oct 16 15:21:12 2008 RT_System - Status changed from 'new' to 'open'  
#   Thu Oct 16 15:21:13 2008 SIMONW - Status changed from 'open' to 'resolved'