Closed Bug 45144 Opened 26 years ago Closed 25 years ago

file: Non-existent file offered for download, crashes on save

Categories

(Core :: Networking: File, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: make, Assigned: rpotts)

References

()

Details

(Keywords: crash, Whiteboard: [nsbeta2-])

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/4.73 [en] (WinNT; U) BuildID: 2000071020 This bug consists of two parts. First - opening a non-existant file via the location bar causes an "Unknown content" warning message to pop up. This warning is totally misleading. Second, if the user chooses to "Save file...", the mozilla crashes. Reproducible: Always Steps to Reproduce: 1. Copy the file-url into the location bar 2. Press ENTER 3. The "Unknown content" warning appears (error #1) 4. Choose "Save file.." 5. The file selector appears 6. Press ok (this will use the default, non-existant name). 7. Mozilla will now die Actual Results: See above. Expected Results: a) In step 3) Mozilla should display a "File not found" or a 404 or whatever warning, but not an unknown content warning. b) Choosing "Save file.." should not lead to a crash :) Due to a lack of time I have not tried if this also happens with shortcuts and/or bookmarks. Maybe someone else could jump in ?
Keywords: crash, nsbeta2
missing or wrong error message are usually tagged dups of 19073 Not sure about the crash here though. Changing component/owner to networking/valeski (who has 19073).
Assignee: asa → valeski
Component: Browser-General → Networking
Putting on [nsbeta2-] radar. Not critical to beta2.
Whiteboard: [nsbeta2-]
Target Milestone: --- → M19
setting defaul qa. possible beta3?
QA Contact: doronr → tever
I attached a patch to prevent the dialog + crash, but now nothing happens if you request a non-existant file. There should probably be a dialog like in Netscape 4...
over to rick. the change is in the nsUnknownDecoder.
Assignee: valeski → rpotts
I don't get the crash on Mac, the save dialog is presented (and filename is accepted) as if the file really did exist. But after clicking `Ok' in the Save dialog, the unknown file type dialog remains behind until you click `Cancel'. This is not the same behavior as bug 19073, which seems odd -- clicking a link, as opposed to opening a file by another method (location bar or Open Location), surely should not make any difference to how that file is opened. Nominating for nsbeta3. This bug produces very strange results (and crashes on some platforms) if you follow any non-existent link in a local file, e.g. any relative link in a disk cache file.
URL: file:///C:/non-existant-file.html → file:///C:/non-existent-file.html
Keywords: nsbeta3
OS: Windows NT → All
Hardware: PC → All
Summary: Opening a non-existant file causes mozilla to crash after misleading warning → Open non-existent file: misleading warning, then crash
Actually, this looks like a dup of bug 44261. It doesn't happen for me with the location bar, just with bad links.
This no longer seems to happen. There is no warning when opening a non existant file (see bug 65102 ) and Mozilla doesn't crash when trying to save the file.
closing. re-open if still an issue.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
VERIFIED allplats. Mozilla 0.9.4 does not crash b/c this dialog is no longer presented (except in Mac, and it saves a zero byte file).
Status: RESOLVED → VERIFIED
Component: Networking → Networking: File
Summary: Open non-existent file: misleading warning, then crash → file: Non-existent file offered for download, crashes on save
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: