Closed
Bug 427333
Opened 17 years ago
Closed 14 years ago
XML Parsing Error, loading DTD in another directory from <file:///> URL
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: folaye, Unassigned)
Details
(Whiteboard: [CLOSEME 2010-09-15])
Attachments
(2 files, 3 obsolete files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5) Gecko/2008032620 Firefox/3.0b5
XML file does not display in FireFox3.0b5. Firefox 2.0.13, IE6 and 7 all displays the XML files.
Reproducible: Always
Steps to Reproduce:
1.Open XML file
2.
3.
Actual Results:
XML Parsing Error appears and the rendering is stopped.
Expected Results:
Display the page as it displays fine in FF2. Or a XML Parsing Error on top then continues to display the page as in FF2 as a backward compatability.
Comment 3•17 years ago
|
||
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9pre) Gecko/2008040520 Minefield/3.0pre
WFM. When I click the link to the first attachment, I get an unstyled XML page, not an XML parsing error page.
Ok. saw it. yesterday the uploaded version was a bunch of codes. now is showing
#########################################
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
-------------------------------------------------------------------------------
Access is denied. Error processing resource 'file:///C:/Program Files/Analog Devices/VisualDSP 4.5/System/linker_map.dtd'. ...
#########################################
Uploaded the DTD file.
i'll try and put the 2 together into a zip file later
this is getting amusing. think i found where the error lies.
Is there a limit to the length of file system address that FF3 can process compared to FF2?
This dies...
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="file:///C:/Program Files/Analog Devices/VisualDSP 4.5/System/linker_map_ss1.xsl"?>
<!DOCTYPE DOCUMENT SYSTEM "file:///C:/Program Files/Analog Devices/VisualDSP 4.5/System/linker_map.dtd">
This works...
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="linker_map_ss1.xsl"?>
<!DOCTYPE DOCUMENT SYSTEM "linker_map.dtd">
Attachment #313885 -
Attachment is obsolete: true
Attachment #313886 -
Attachment is obsolete: true
Attachment #313936 -
Attachment is obsolete: true
For the working version. i simply copied a set of the files:
C:/Program Files/Analog Devices/VisualDSP 4.5/System/linker_map_ss1.xsl
C:/Program Files/Analog Devices/VisualDSP 4.5/System/linker_map.dtd
to the working directory and edited the links to local relative linking.
<?xml-stylesheet type="text/xsl" href="linker_map_ss1.xsl"?>
<!DOCTYPE DOCUMENT SYSTEM "linker_map.dtd">
it possibly have to do with how FF3 parses the lines:
<?xml-stylesheet type="text/xsl" href="file:///C:/Program Files/Analog Devices/VisualDSP 4.5/System/linker_map_ss1.xsl"?>
<!DOCTYPE DOCUMENT SYSTEM "file:///C:/Program Files/Analog Devices/VisualDSP
4.5/System/linker_map.dtd">
Comment 10•17 years ago
|
||
I think you're just encountering the new file:/// security restrictions in Firefox 3. Local files are no longer allowed to read other local files unless they're in the same directory or a subdirectory, and including a dtd counts as reading. See bug 230606 and bug 402983.
Reporter | ||
Comment 11•17 years ago
|
||
ah. i see. most likely it.
though same as posters in the other reports. i question the need for such restrictions. is there a way to diable this security feature? i can think of most likely more than one program (this case is VisualDSP++) generates XML or HTML files as report files that would require this function. Web developers too.
forgive me if the situation has changed. cos i'm only a budding programmer. not so skilled or knowledgable yet.
Updated•17 years ago
|
Version: unspecified → Trunk
Updated•17 years ago
|
Summary: XML Parsing Error → XML Parsing Error, loading DTD in another directory from <file:///> URL
Comment 12•17 years ago
|
||
I was about to post a bug for Firefox 3 beta 5 relating to xml-stylesheet
but I think this is the same issue, so adding a comment here.
any xml file starting with a link to an xsl stylesheet starting with ..
eg
<?xml-stylesheet type="text/xsl" href="../styles/pitest.xsl" ?>
gives a
XML Parsing Error:
Location: file:///C:/tmp/pitest/xml/pitest.xml
Line Number 1, Column 1:
warning which is pretty confusing (it's not a parse error)
the restriction on the stylesheet being a subdirectory is pretty crippling for distributing documentation to be installed on the user's local machine
(so accessed via file:://) but with a "site wide" styleshete in place, in which case the natural thing (which works in IE, Opera and FF2) is to have a stylesheet near the top of the tree and relative links from the xml files of the form ../path-to-styles-directory/stylesheet.xsl
Comment 13•14 years ago
|
||
Reporter, are you still seeing this issue with Firefox 3.6.8 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2010-09-15]
Comment 14•14 years ago
|
||
No reply, INCOMPLETE. Please retest with Firefox 3.6.10 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
Comment 15•14 years ago
|
||
Seeing this issue with Firefox 4.0 Beta 11, with a new user profile, with and without safemode. Error Message:
Error loading stylesheet: An unknown error has occurred (805303f4)
You need to log in
before you can comment on or make changes to this bug.
Description
•