Closed
Bug 311975
Opened 20 years ago
Closed 2 years ago
inconsistent handling of backslash in local filesystem URI
Categories
(Core :: Networking: File, defect, P5)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: oldwolf, Unassigned)
References
(Depends on 1 open bug)
Details
(Whiteboard: DUPEME[necko-would-take])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Backslashes are treated as path separators (in a file:// URI) everywhere except
for the final one in the string, which causes strange behaviour. This behaviour
seems inconsistent to me; it should either always be a path separator, or never
be one.
Reproducible: Always
Steps to Reproduce:
1. Create a file C:\foo\bar\qux.html that has some text, and refers to another
file in the same directory (eg. <IMG src="qux.jpg">).
2. Access the file with file://C:\foo/bar\qux.html
Actual Results:
The text from qux.html was displayed but the image was not. In fact, Firefox
tried to load C:\foo\qux.jpg .
Expected Results:
It should either load the HTML and the image, or load neither.
The URI file://C:\foo\bar/qux.html does work as expected (page loads and image
loads).
I have read bug 32895 which says that blackslash should be supported for
filesystem locations, but bug 263916 says that it shouldn't. But either way, I
don't think half-and-half is a great solution.
Updated•20 years ago
|
Assignee: nobody → darin
Component: General → Networking: File
Product: Firefox → Core
QA Contact: general → benc
Version: unspecified → 1.7 Branch
I guess, the part after "/" is treated as files under root (because it is the
correct path separator), so Moz tries in the 1st case to load the mentioned
wrong link. In the 2nd link that works, because it is the right dir.
Whiteboard: DUPEME
Comment 2•20 years ago
|
||
-> default owner
Assignee: darin → nobody
QA Contact: benc → networking.file
Version: 1.7 Branch → Trunk
Updated•10 years ago
|
Whiteboard: DUPEME → DUPEME[necko-would-take]
Comment 3•8 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Updated•3 years ago
|
Severity: normal → S3
Backslash normalization works according to spec.
I've tested the scenario in comment 0 and it now works.
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•