Open Bug 608568 Opened 14 years ago Updated 2 years ago

Download Manager does not maintain user-supplied full file name when saving a file with .exe extension

Categories

(Toolkit :: Downloads API, defect)

3.0 Branch
x86
Windows
defect

Tracking

()

Tracking Status
firefox40 --- affected
firefox41 --- affected
firefox42 --- affected
firefox43 --- affected
firefox-esr31 --- affected
firefox-esr38 --- affected

People

(Reporter: ocyl, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12

When the "Always ask me where to save files" option is set in Firefox -> Tools -> Options -> General, Download Manager would always add an additional .EXE extension to the saved file name if the user changes the case of the extension before/while the file is downloaded, causing the full file name to have two .exe in it.

DECCheckSetup.EXE (see URL) is selected as a test sample due to its small file size (162 KB).

Reproducible: Always

Steps to Reproduce:
1.  In Windows Explorer, go to Tools -> Folder Options -> View, uncheck the "Hide extensions for known file types" option, then click on OK.

2.  In Firefox, go to Tools -> Options -> General, select the "Always ask me where to save files" option, then click on OK. 

3.  Paste "http://download.microsoft.com/download/9/b/2/9b276571-80d5-43ca-806f-d68fca4b4e89/DECCheckSetup.EXE" into Firefox's address field and hit Enter.  Click on the Save File button, change the file name from DECCheckSetup.EXE to DECCheckSetup.exe, then click on the Save button.

4.  In Windows Explorer, go to the location where the file is saved, and verify that the full name of the saved file is DECCheckSetup.exe.EXE.
Actual Results:  
The executable file is saved with an additional .EXE in its name.

Expected Results:  
Download Manager should have saved the file based on the full file name that the user specifies, without adding an .EXE extension at the end.

This appears to happen only to .exe as far as I am aware.  (Maybe there are others.)  When one saves http://www.google.com/intl/en_com/images/srpr/logo1w.png as logo1w.PNG with the same configuration, for instance, the file is properly saved as logo1w.PNG instead of logo1w.PNG.png.
Confirmed.

Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20110608 Firefox/4.0.1 SeaMonkey/2.1

Seamonkey 2.1, Windows 7 x86, too.

SM 2.1 EXE file save duplicate extension concatenation
http://forums.mozillazine.org/viewtopic.php?f=5&t=2224967
This continues to be an issue.

Mozilla/5.0 (Windows NT 5.1; rv:10.0.11) Firefox/10.0.11
Version: unspecified → Trunk
Why is this not marked as 'Confirmed'?
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → Windows
Good: 2008-Apr-02
Bad:  2008-Apr-03

Suspected: Bug 299372
Blocks: 299372
See Also: → 1578287
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: