Closed
Bug 17964
Opened 25 years ago
Closed 25 years ago
File/directory names with '#' on local fs broken.
Categories
(Core :: Layout, defect, P3)
Tracking
()
VERIFIED
FIXED
M14
People
(Reporter: ramune, Assigned: jud)
Details
(Whiteboard: [PDT+] [02/11/00])
When browsing the local filesystem via: file://localhost/path/to/place, trying
to open a directory or a file with a '#' in its name will simply list the
entries in the same directory as that. i.e.: if a/ contains b/, c/, and #/,
a/# will list: b/, c/, and #/. If a file with a '#' in it is accessed, the
contents of that directory will simply be shown again.
CVS checkout on Wed Nov 3 21:42:45 - 22:03:53 PST 1999
Linux 2.3.25, glibc-2.1.2, gcc-2.95.1
Comment 2•25 years ago
|
||
This is a funny urlparsing case. # is a special character in an normal url. It
separates the reference part from the filename.
You can see this funny behaviour when creating a directory
xx with file zzz in it
and a directory
xx#yy with a file yyy in it.
When clicking on xx#yy you get zzz as file, because you are really in directory
xx.
This is ugly but there is little hope here because I can think of some cases
where file-URLs could have a ref-part. So we can't dismiss this and treat # as a
normal char.
Assignee | ||
Comment 3•25 years ago
|
||
perhaps encoding the url first would help?
Comment 4•25 years ago
|
||
This might be an option if the click on the path would deliver the encoded path
back. However, what happens if the filepath is typed into the urlbar? # is a
character that should be encoded if it is not the ref-character.
If we could savely assume that there would be no / after a # in an URL or at
least in a file-URL, we could ignore the # in the path and get it right. I
currently don't kwow how this will do with # in a filename but it may be a
start.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M13
Comment 5•25 years ago
|
||
I have now again something working in URLparsing that does ESCAPING/UNESCAPING.
Where can I find that stuff that does the directory tree in the layout when
viewing file://... ? Want to try something ...
Assignee | ||
Comment 6•25 years ago
|
||
xpfe/components/directory/nsDirectoryViewer.cpp does the http index parsing. Is
this what you're after andreas?
Assignee | ||
Comment 7•25 years ago
|
||
making this bug dependent on the url parsing meta bug.
Comment 8•25 years ago
|
||
partial fix for this in ANDREAS_URL_BRANCH
Assignee | ||
Comment 10•25 years ago
|
||
andreas, is this sucker gone?
Comment 11•25 years ago
|
||
This is only partially fixed, because only nsDirectoryViewer is now able to do
this kind of stuff for you. It is still possible to put a # in the urlbar as
part of a filename and get this mistaken as a REF.
Maybe we need a very smart part of webshell which can detect that this # is
infact part of a filename and has to be escaped before given to nsStdURL.
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [PDT+] → [PDT+] [02/11/00]
Assignee | ||
Comment 12•25 years ago
|
||
I'm able to view dirs with '#' in them, and load files with '#' in the filename.
Marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 13•25 years ago
|
||
With the Feb 09 build, this problem appears to be fixed. Tested under Linux Red
Hat 6.0
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•