Closed Bug 229783 Opened 21 years ago Closed 21 years ago

Download which tries to overwrite read-only file doesn't fail until download is complete

Categories

(Core Graveyard :: File Handling, defect)

x86
OS/2
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmlandsvik, Assigned: mkaply)

Details

(Keywords: fixed1.4.2, fixed1.6)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.5) Gecko/20031015 Firebird/0.7
Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.5) Gecko/20031015 Firebird/0.7

When downloading and saving a file onto a file with same name, and the existing
file is ReadOnly, then FireBird does NOT give a warning, but fails to save,
AFTER downloading the whole file.

Reproducible: Always

Steps to Reproduce:
1.Download a file.
2.Set file ReadOnly.
3.Download same file into same file/folder.

Actual Results:  
The file downloads, and after finishing download says: PATH\FILE\could not be
saved, because you cannot change the content of that folder.
Change the folder properties and try again, or save in a different location.

Expected Results:  
Give a notice that the file is ReadOnly BEFORE starting the download!
Operating System: OS/2 Warp Server for eBussiness (4.50)
OS: other → OS/2
Summary: Gives notice AFTER download finish when saving to existing RO file. → Download which tries to overwrite read-only file doesn't fail until download is complete
Attached patch Fix for problemSplinter Review
Add our own message for readonly since other file dialogs do it.
taking
Assignee: bugs → mkaply
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #138428 - Flags: review?(pedemont)
Comment on attachment 138428 [details] [diff] [review]
Fix for problem

Is there a way to not persist the three char strings?
Attached patch Better fixSplinter Review
This patch makes the strings global and static so they only get allocated once
and they only get allocated as needed.
Attachment #138431 - Flags: review?(pedemont)
Attachment #138428 - Flags: review?(pedemont)
Attachment #138431 - Flags: review?(pedemont) → review+
changing product
Component: Downloading → File Handling
Product: Firebird → Browser
Version: unspecified → Trunk
Comment on attachment 138431 [details] [diff] [review]
Better fix

sr=blizzard (platform specific)
a=mkaply for 1.4.2 and 1.6 since it is OS/2 specific
Attachment #138431 - Flags: superreview+
Attachment #138431 - Flags: approval1.6+
Attachment #138431 - Flags: approval1.4.2+
Fixed everywhere
Status: NEW → RESOLVED
Closed: 21 years ago
Keywords: fixed1.4.2, fixed1.6
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: