[Mono-bugs] [Bug 614596] New: Source tags aren't handled correctly in Atom10ItemFormatter
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 15 20:32:22 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=614596
http://bugzilla.novell.com/show_bug.cgi?id=614596#c0
Summary: Source tags aren't handled correctly in
Atom10ItemFormatter
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: WCF
AssignedTo: atsushi at ximian.com
ReportedBy: carlos at cmartin.tk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=369424)
--> (http://bugzilla.novell.com/attachment.cgi?id=369424)
Correctly handle <source> tags
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4
(KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
When System.ServiceModel.Syndication.Atom10ItemFormatter.ReadXml()
finds a <source> tag, it hands if off to ReadSourceFeed() which hands if
off to Atom10FeedFormatter.ReadFrom() which tries to load the inner
elements as though it were the contents of a normal feed.
This doesn't work, however, because Atom10FeedFormatter checks for a
<feed> tag (which it doesn't find) and throws an exception complaining
that "title" isn't a valid element (which took me a while to decipher).
The attached patch walks through the child elements of <source> and
adds this information to a generic SyndicationFeed().
Reproducible: Always
Steps to Reproduce:
Load an Atom feed with an item containing a <source> tag
Actual Results:
The parser fails and throws an exception
Expected Results:
The source feed information should be copied to a SyndicationFeed
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list