file:// Can not view directories

VERIFIED FIXED in M10

Status

()

P3
normal
VERIFIED FIXED
20 years ago
17 years ago

People

(Reporter: jim_nance, Assigned: waterson)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

20 years ago
Using a file URL to view the contents of a directory other than / does
not work.  For example If I try to open file:/tmp or file:///tmp I see
no files in the directory despite the fact that several exist.  Other
directories have the problem too, but looking at / does seem to work.

From looking at strace output it seems that the problem is that apprunner
is trying to stat the files in the directory using an incorrect
relitive path rather than the absolute path.  When this fails it assumes
that the files are not really there:

172 196
/* 10 entries */, 3933) = 196
stat("tmp/.X0-lock", 0xbfffd464)        = -1 ENOENT (No such file or directory)
stat("tmp/jln", 0xbfffd464)             = -1 ENOENT (No such file or directory)
stat("tmp/look", 0xbfffd464)            = -1 ENOENT (No such file or directory)
stat("tmp/.X11-unix", 0xbfffd464)       = -1 ENOENT (No such file or directory)
stat("tmp/.font-unix", 0xbfffd464)      = -1 ENOENT (No such file or directory)
stat("tmp/nscomm40-lisa", 0xbfffd464)   = -1 ENOENT (No such file or directory)
stat("tmp/wpc-Bessie", 0xbfffd464)      = -1 ENOENT (No such file or directory)
stat("tmp/tksysv-backup", 0xbfffd464)   = -1 ENOENT (No such file or directory)
lseek(13, 0, SEEK_CUR)                  = 1024

Comment 1

20 years ago
Same or similar problem happens on MacOS 8.6, Mozilla M6. Directories are not
browseable.

Comment 2

20 years ago
Pushed past necko landing...

Comment 3

19 years ago
Changing all Networking Library/Browser bugs to Networking-Core component for
Browser.

Occasionally, Bugzilla will burp and cause Verified bugs to reopen when I do
this in a bulk change.  If this happens, I will fix. ;-)

Updated

19 years ago
Summary: Can not view directories using file:// URLs → NECKO: Can not view directories using file:// URLs

Comment 4

19 years ago
Pl. verify this with Necko builds. Should be fixed now. (If not pls. assign to
warren)

Comment 5

19 years ago
file url's are not looking good. Something like file://c:/ should give a
directory listing on windows at least, per 4.x behavior. I get a
blank screen, however, on win95. Re-assigning to warren per gagzilla's
instructions

Note: you can open local files using the File - Open menu no problem

Updated

19 years ago
Assignee: gagan → warren
Status: ASSIGNED → NEW

Comment 6

19 years ago
*** Bug 737 has been marked as a duplicate of this bug. ***

Updated

19 years ago
Status: NEW → ASSIGNED

Comment 7

19 years ago
*** Bug 4993 has been marked as a duplicate of this bug. ***

Updated

19 years ago
OS: Linux → All
Hardware: PC → All

Updated

19 years ago
Component: Networking-Core → Necko

Comment 8

19 years ago
Setting component to necko.

Updated

19 years ago
Target Milestone: M9 → M10

Comment 9

19 years ago
Moving to m10.

Comment 10

19 years ago
*** Bug 11424 has been marked as a duplicate of this bug. ***

Comment 11

19 years ago
Tried on 1999070614 <mislabel build of 8/13/1999.

To reproduce :
1. Run apprunner
2. Type File:// and hit enter
     Result : apprunner will display Unknow Contant windows.  On the Apprunner
console this will display regarding to this action :
{
DocLoaderFactory: Unable to create ContentViewer for command=view, content-type=
(null) }

note : But if you have valid HTML file it'll be happy to render it.
surch as this one. file:///C|/MOZILLA/BIN/res/samples/test2.html

file:///C|/MOZILLA/BIN/res/samples/test2.html

Updated

19 years ago
Assignee: warren → waterson
Status: ASSIGNED → NEW

Comment 12

19 years ago
Chris has changes for this now.
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 13

19 years ago
this is in on all platforms, looking pretty snazzy! There are a few bugs, which
will be filed separately, so marking this tracker bug verified.

Updated

19 years ago
Blocks: 12834

Comment 14

19 years ago
Bulk move of all Necko (to be deleted component) bugs to new Networking

component.

Updated

17 years ago
Component: Networking → Networking: File
Summary: NECKO: Can not view directories using file:// URLs → file:// Can not view directories
You need to log in before you can comment on or make changes to this bug.