#015625: RSS 0.90 feeds are parsed as RSS 1.0 feeds

Description:

I've taken the example feed RSS 0.90 feed from
http://www.rssboard.org/rss-0-9-0url

The Feed component should not try to parse it as RSS 1.0 feed but rather throw an exception. Or sb. could write a RSS 0.90 parser. :-)


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


Steps to Reproduce:

<?php

$xml = <<<EOT
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://channel.netscape.com/rdf/simple/0.9/">

  <channel>
    <title>Mozilla Dot Org</title>
    <link>http://www.mozilla.org</link>
    <description>the Mozilla Organization
      web site</description>
  </channel>

  <image>
    <title>Mozilla</title>
    <url>http://www.mozilla.org/images/moz.gif</url>
    <link>http://www.mozilla.org</link>
  </image>

  <item>
    <title>New Status Updates</title>
    <link>http://www.mozilla.org/status/</link>
  </item>
</rdf:RDF>
EOT;

require_once '/var/checkouts/ezcomponents/trunk/Base/src/ezc_bootstrap.php';
$feed = ezcFeed::parseContent( $xml );

var_dump( $feed->item );
var_dump( $feed->getFeedType() );

- Attachments

No attachments for this issue.


- Comments

Fixed in SVN rev. 11119. It will be available in Feed 1.3beta1 (part of eZ Components 2009.2beta1).

#263912 by Alexandru Stanoi on November 17th, 2009 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Feed
Affects Unknown
Fix Version -
Reporter Thomas Koch
Responsible Alexandru Stanoi
Status 0 Closed
Resolution Fixed
Created October 5th, 2009
Updated November 17th, 2009
Resolved November 17th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels