Bug #563

atom10 feed doesn't escape quote (") characters in link titles

Added by rick-rickbradley-com - 962 days ago. Updated 309 days ago.

Status :Assigned Start :
Priority :Normal Due date :
Assigned to :scott - % Done :

0%

Category :frontend
Target version :-
Resolution :


Description

I wrote an article that used a quoted phrase in the title (The lay of the land at "milestone05"). When importing the feed into Firefox's RSS reader one of my readers got the following message:

http://rewrite.rickbradley.com/xml/atom10/feed.xml

XML Parsing Error: not well-formed
Location: http://rewrite.rickbradley.com/xml/atom10/feed.xml
Line Number 22, Column 42:    <link title="The lay of the land at
"milestone05"" length="47548" rel="enclosure" type="image/png" 
href="http://rewrite.rickbradley.com/files/screen-milestone-051.png"/>

It appears that the feed generator is not properly escaping " characters inside the "-ed title attribute of the link element in the atom10 feed.

I did an svn update, found the code which generates it, and found the test code for atom10, but now I'm not going to have a chance today to finish the test and patch, so I'm filing a ticket. I've changed the title to something without "s for the time being, but the problem should be easily reproducible.

History

12/01/2005 01:52 AM - scott -

  • Status changed from New to Assigned

12/29/2005 12:11 AM - phil-ross-gmail-com -

It looks like the problem here is that attribute values are not escaped by rxml/Builder. I've filed a bug against Rails about this issue:

http://dev.rubyonrails.org/ticket/3354

Also available in: Atom PDF