From: Hilary S. <hil...@st...> - 2006-12-20 22:36:01
|
Hi, I'm having problems with the RSS feeds in the open source code. First, I noticed that some tags were malformed/empty "<:>". I fixed this by commenting out a line in DBI.pm, although I'm not sure what was causing the problem in the first place. Now, the only problem seems to be that the resulting file is not recognized/displayed as an RSS file by Firefox (2.0), so I can't use the live bookmarks feature. This is not a problem on the main Connotea site, so I'm hoping someone will be able to help me fix it. Here's a image of the problem: http://cirge.stanford.edu/connoteafiles/rss.html The top image is what I see when I click the "RSS" link at the top of a list of bookmarks. The bottom image is what I should see. Oddly enough, if I use curl to create a local copy of the rss feed (curl -o test.rss http://cirge.stanford.edu/bibliotech/rss/user/hilary/tag/aCGH) generated by connotea, it is recognized by Firefox to be an rss feed. This has nothing to do with the file extension since "curl -o test http..." also generates a recognized rss feed. I am using Apache's mod_mime (with the default configurations) although I don't think this should have any effect. From my research, I think that Firefox guesses if a file is an RSS file or an HTML file by looking at the first couple of lines. If the file begins with <? ?>followed by <rdf:RDF> or <rss>, then Firefox should treat the file as an RSS file. However, the content of both the file at http://cirge.stanford.edu/bibliotech/rss/user/hilary/tag/aCGH and the copied file generated by curl are identical. So theoretically, Firefox should interpret them the same way, but doesn't. I'm confused. The only difference I can find is that the file header for the (correctly recognized) RSS feed says the file type is "application/xhtml+xml", while the file header for the unrecognized RSS feed says the file type is "application/xml". Changing this in Const.pm so that the RSS feeds have "application/xhtml+xml" as the file type doesn't seem to make a difference. Anyone else having this problem? Any thoughts? Please ask if any of the above is not clear. Thanks so much, Hilary |