XML: enclosure url parsing bug

UNCONFIRMED
Unassigned

Status

()

Firefox
RSS Discovery and Preview
UNCONFIRMED
9 years ago
7 years ago

People

(Reporter: dmex, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6

Firefox refuses to parse RSS-XML documents where <enclosure url="" /> does not begin with http:// or ftp://

Reproducible: Always

Steps to Reproduce:
1.Create a XML document
2. load XML in Firefox and IE
3. Compare difference in parsing
Actual Results:  
Firefox does not load the XML document while IE does

Expected Results:  
Firefox should still parse and display the RSS-XML document correctly regardless of the url used in <enclosure url="" /> tags

Consider these example XML documents...

Firefox refuses to parse this example:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<item>
      <title>test.sc</title>
      <link>\\dmex-pc\files\projects\test.msi</link>
      <description>None</description>
      <pubDate>Thu, 13 Mar 2008 02:06:00 GMT</pubDate>
      <author>Admin</author>
      <enclosure url="\\dmex-pc\files\projects\test.msi" length="492" type="application/octetstream" />
    </item>
  </channel>
</rss>

Filefox does not parse this link even though it begins with http://..IE does completely parse the document however:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<item>
      <title>test.sc</title>
      <link>\\dmex-pc\files\projects\test.msi</link>
      <description>None</description>
      <pubDate>Thu, 13 Mar 2008 02:06:00 GMT</pubDate>
      <author>Admin</author>
      <enclosure url="http://dmex-pc\files\projects\test.msi" length="492" type="application/octetstream" />
    </item>
  </channel>
</rss>

Firefox however will parse this document correctly but IE doesn't know how to handle File:// links" 

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
<item>
      <title>test.sc</title>
      <link>\\dmex-pc\files\projects\test.msi</link>
      <description>None</description>
      <pubDate>Thu, 13 Mar 2008 02:06:00 GMT</pubDate>
      <author>Admin</author>
      <enclosure url="file://dmex-pc\files\projects\test.msi" length="492" type="application/octetstream" />
    </item>
  </channel>
</rss>
(Reporter)

Comment 1

9 years ago
Sucessfull parsing of these examples by Firefox completely depends on the text provided in the <enclosure url=" /> tags
This bug was reported using Firefox 3.0 or older, which is no longer supported. The bug has also not been changed in over 500 days and is still in UNCO.
Reporter, please retest this bug in Firefox 3.6.10 or later using a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles. If you still see this problem, please update the bug. If you no longer see the bug, please set the resolution to RESOLVED, WORKSFORME.

This is a mass search of unconfirmed bugs that have no activity on them, so if you feel a bug was marked in error, just remove the CLOSEME comment in the whiteboard within the next month.
Whiteboard: [CLOSEME 2010-11-15]
Whiteboard: [CLOSEME 2010-11-15]
Version: unspecified → Trunk
While RSS spec compliance isn't a particularly interesting goal, if we chose it in this case, we would only treat http (or, depending on our interpretation of "The url must be an http url.", http and https) as acceptable url values.
You need to log in before you can comment on or make changes to this bug.