UNRESOLVED
Details
Assignee
ROME Jira LeadROME Jira LeadReporter
teiloteiloFix versions
Affects versions
Priority
Major
Details
Details
Assignee
ROME Jira Lead
ROME Jira LeadReporter
teilo
teiloFix versions
Affects versions
Priority
Created August 12, 2009 at 2:05 PM
Updated October 8, 2013 at 5:32 PM
Resolved August 13, 2009 at 8:14 AM
Rome incorrectly handles the CDATA encoded content and escapes the values so
they end up doubly escaped.
e.g.
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
...
<item>
<link>http://serv/cgi?bob=fred&jane=freddy</link>
</item>
<item>
<link><![CDATAhttp://serv/cgi?bob=fred&jane=freddy]></link>
</item>
</channel>
</rss>
when dumped/retrieved the two entries should be the same however the second
items link has the & escaped whereas the first is correct and as expected (the
escape sequence has been removed)
SyndFeedImpl.entries[0].link=http://serv/cgi?bob=fred&jane=freddy
SyndFeedImpl.entries[1].link=http://serv/cgi?bob=fred&jane=freddy
That is when retreived and no longer inside XML the CDATA section should be
returned as-is without the CDATA section wrapping. Elements without this should
have any escaping removed.
test case attached.