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)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.7alpha
People
(Reporter: chrispetersen, Assigned: Biesinger)
Details
(Keywords: crash, regression)
Attachments
(2 files)
51.91 KB,
text/plain
|
Details | |
1.95 KB,
patch
|
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Updated•21 years ago
|
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)
Updated•21 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Camino0.8
Comment 2•21 years ago
|
||
pushing to biesi per our conversation. we should proably not let it get into the
state where mOutStream was null.
Assignee | ||
Comment 3•21 years ago
|
||
Comment 4•21 years ago
|
||
Comment on attachment 140615 [details] [diff] [review]
patch
r=pink, this fixes it for me.
Attachment #140615 -
Flags: review+
Updated•21 years ago
|
Attachment #140615 -
Flags: superreview?(bzbarsky)
Assignee | ||
Comment 5•21 years ago
|
||
-> 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 6•21 years ago
|
||
Comment on attachment 140615 [details] [diff] [review]
patch
sr=bzbarsky
Attachment #140615 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 7•21 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 8•21 years ago
|
||
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.
Reporter | ||
Comment 9•21 years ago
|
||
Verified fixed in the Macho Mozilla 2004020605 Trunk build.
Status: RESOLVED → VERIFIED
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•