[Mono-bugs] [Bug 546965] New: Mono Rss20ItemFormatter can't cope with CDATA protected categories in syndication feeds

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 14 13:21:03 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=546965

User romain at blogreen.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=546965#c546959

           Summary: Mono Rss20ItemFormatter can't cope with CDATA
                    protected categories in syndication feeds
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: romain at blogreen.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=322521)
 --> (http://bugzilla.novell.com/attachment.cgi?id=322521)
Fix

User-Agent:       Mozilla/5.0 (X11; U; FreeBSD amd64; fr-fr) AppleWebKit/531.2+
(KHTML, like Gecko) Safari/531.2+

Parsing an RSS feed with CDATA protected categories will throw an error on mono

Reproducible: Always

Steps to Reproduce:
Parse a RSS feed with CDATA protected categories. e.g.
<category><![CDATA[Sample]]></category>
Actual Results:  
An exception is thrown:
Element node is expected on the argument xmlReader:0:0

  at System.ServiceModel.Syndication.SyndicationElementExtension..ctor
(System.Xml.XmlReader xmlReader) [0x00041] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationElementExtension.cs:81 
  at System.ServiceModel.Syndication.SyndicationElementExtensionCollection.Add
(System.Xml.XmlReader xmlReader) [0x00000] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationElementExtensionCollection.cs:80 
  at
System.ServiceModel.Syndication.SyndicationItemFormatter.LoadElementExtensions
(System.Xml.XmlReader reader,
System.ServiceModel.Syndication.SyndicationCategory category, Int32
maxExtensionSize) [0x00000] 
  at System.ServiceModel.Syndication.Rss20ItemFormatter.ReadCategory
(System.Xml.XmlReader reader,
System.ServiceModel.Syndication.SyndicationCategory category) [0x0017d] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20ItemFormatter.cs:300 
  at System.ServiceModel.Syndication.Rss20ItemFormatter.ReadXml
(System.Xml.XmlReader reader, Boolean fromSerializable) [0x0025b] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20ItemFormatter.cs:180 
  at System.ServiceModel.Syndication.Rss20ItemFormatter.ReadFrom
(System.Xml.XmlReader reader) [0x00028] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20ItemFormatter.cs:112 
  at System.ServiceModel.Syndication.Rss20FeedFormatter.ReadItem
(System.Xml.XmlReader reader, System.ServiceModel.Syndication.SyndicationFeed
feed) [0x00006] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20FeedFormatter.cs:124 
  at System.ServiceModel.Syndication.Rss20FeedFormatter.ReadXml
(System.Xml.XmlReader reader, Boolean fromSerializable) [0x00388] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20FeedFormatter.cs:253 
  at System.ServiceModel.Syndication.Rss20FeedFormatter.ReadFrom
(System.Xml.XmlReader reader) [0x00028] in
/usr/home/romain/Projects/mono-2-6/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20FeedFormatter.cs:118 


Expected Results:  
Parse the category correctly

Related to #546959 (I had to fix this bug before being able to discover and fix
this one)

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list