Closed Bug 127408 Opened 23 years ago Closed 23 years ago

cant open directory viewer to local drive

Categories

(Core :: DOM: Navigation, defect)

x86
All
defect
Not set
blocker

Tracking

()

RESOLVED FIXED

People

(Reporter: mozbugz, Assigned: darin.moz)

References

Details

(Keywords: regression)

Attachments

(1 file)

using build 2-22-03 w2k, I try to enter c: or file:///c:/, or file:/c:/ I just get a dialog that tells me that file:/c:/ cannot be found. this is a regression.
Severity: normal → major
Summary: cant open directory viewer to local drive → cant open directory viewer to local drive
This happens on OS/2 as well. Changing OS to all and moving it to a better component.
Assignee: hewitt → law
Severity: major → blocker
Component: URL Bar → File Handling
OS: Windows 2000 → All
QA Contact: claudius → sairuh
It looks like we're passing plain "c:" to the docshell. From there it does a bunch of uri fixup kind of stuff. I couldn't figure out at what point things break down. If somebody could say precisely when this broke, it would be real easy to figure out what code changed to break it.
Assignee: law → adamlock
Component: File Handling → Embedding: Docshell
QA Contact: sairuh → adamlock
I can to the build search tomorrow to try to identify the day of the regression. I think we really want this for 0.9.9 so I'm adding it to our tracking bug. Law, do you think this is you or adamlock or someone else? (I guess pinpointing the offending checkin will tell).
Blocks: 122050
Keywords: regression
Ok, I've got several older builds here, I'll check to see If I can nail it down by tomorrow evening for ya.
ok, that was easy, build 2-20 w2k (win32) works fine, build 2-21-03 w2k is broke. bonsai: 02/20/2002 06:00 and 02/21/2002 12:00 : http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=SeaMonkeyAll&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=02%2F20%2F02+06%3A00&maxdate=02%2F21%2F02+12%3A00&cvsroot=%2Fcvsroot I'm going to take a stab at DougT: bug 122523, nsFileStreams., removing stat call on opening file.
Definitely appears to be this code. http://lxr.mozilla.org/seamonkey/source/netwerk/base/src/nsFileStreams.cpp#191 The call to nsILocalFile::OpenNSPRFileDesc is returning PR_NO_ACCESS_RIGHTS_ERROR for drives and probably PR_IS_DIRECTORY_ERROR for normal directories. This causes the code to code to return NS_ERROR_FILE_NOT_FOUND. My guess is that if OpenNSPRFileSpec fails, the code should do an isDir to catch drives and directions. Doug, do you want to take this?
sure. over to darin. I sent him a patch.
Assignee: adamlock → darin
Attached patch Proposed patchSplinter Review
Doug can you review this? Patch calls IsDirectory if the file open fails and fixes a potential crasher if method is called on a dir with contentLength as nsnull and contentType non-nsnull.
my patch for bug 124042 incorporates dougt's fix for this already.
Depends on: 124042
*** Bug 128491 has been marked as a duplicate of this bug. ***
*** Bug 128487 has been marked as a duplicate of this bug. ***
*** Bug 128912 has been marked as a duplicate of this bug. ***
This is on the 0.9.9 radar apparently. Any progress with this bug?
nominating for beta1 and mozilla 1.0
Keywords: mozilla1.0, nsbeta1
so this has been fixed on the trunk w/ the landing of my patch for bug 124042. if that patch lands for 0.9.9, then it'll also be fixed there... so, hold onto your horses...
I can't imagine they're going to take an 100k+ patch on the 0.9.9 branch.. I think we need a better way to fix this on 0.9.9
various drivers have been saying since the inception of bug 124042 that it should go out w/ 0.9.9 in order to get sufficient coverage. i am still waiting to hear the final word from them.
if not, then there's always my patch above.
*** Bug 129493 has been marked as a duplicate of this bug. ***
+cc: gagan - shouldn't we plus this for nsbeta?
fixed-on-trunk, fixed-on-branch.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
qa to me. another one of this necko qa testable docshell bugs.
QA Contact: adamlock → benc
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: