Closed Bug 232784 Opened 21 years ago Closed 21 years ago

Attempting to download a file to a write protected folder results in a crash (nsExternalAppHandler::SaveToDisk(nsIFile*, int)

Categories

(Core Graveyard :: File Handling, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.7alpha

People

(Reporter: chrispetersen, Assigned: Biesinger)

Details

(Keywords: crash, regression)

Attachments

(2 files)

Build: 2004013103 Platform: OS X 10.3.2 Expected Results: Attempting to dl a file to write protected folder should result in a error warning like 'Cannot save or write file'. What I got: Application crashes Steps to reproduce: 1) In Terminal, set folder to have no write access on the computer's local drive chmod u= folder name 2) Launch Camino and use Camino's preferences to specify this particular folder as the default download folder 3) Attempt to download a file in Camino 4) This results in a crash
Attached file stack trace
Summary: Attempting to download a file to a write protected file results in a crash (nsExternalAppHandler::SaveToDisk(nsIFile*, int) → Attempting to download a file to a write protected folder results in a crash (nsExternalAppHandler::SaveToDisk(nsIFile*, int)
Keywords: crash
Status: NEW → ASSIGNED
Target Milestone: --- → Camino0.8
pushing to biesi per our conversation. we should proably not let it get into the state where mOutStream was null.
Assignee: pinkerton → cbiesinger
Status: ASSIGNED → NEW
Keywords: regression
Comment on attachment 140615 [details] [diff] [review] patch r=pink, this fixes it for me.
Attachment #140615 - Flags: review+
Attachment #140615 - Flags: superreview?(bzbarsky)
-> browser:file handling, as that's where the bug is hm. seamonkey/win2k doesn't seem to crash when I make $TEMP unwritable. I wonder why... I even get an error dialog (with a wrong message, but still) with the patch, I get the expected dialog (that mozilla can't write to the target dir because of missing permissions)
Status: NEW → ASSIGNED
Component: Downloading → File Handling
Product: Camino → Browser
Target Milestone: Camino0.8 → mozilla1.7alpha
Version: unspecified → Trunk
Comment on attachment 140615 [details] [diff] [review] patch sr=bzbarsky
Attachment #140615 - Flags: superreview?(bzbarsky) → superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Excellent.. This has been fixed in the Camino 2004020603 NB under 10.3.2. I now get a sheet that states "file can't be saved, because you cannot change the contents of that folder". Need to check the mac mozilla trunk build too.
Verified fixed in the Macho Mozilla 2004020605 Trunk build.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: