Closed Bug 480600 Opened 15 years ago Closed 6 years ago

XML: enclosure url parsing bug

Categories

(Firefox Graveyard :: RSS Discovery and Preview, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: dmex04, Unassigned)

Details

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>
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.
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.