Closed Bug 270850 Opened 20 years ago Closed 20 years ago

Downloaded file with exact name of a file already existing gets incremented automatically incorrectly

Categories

(Toolkit :: Downloads API, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 231048

People

(Reporter: kyknferno, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

When a file is downloaded with the same name of a file that already exists in
the "Download Folder", the file depending on the filename gets incremented
incorrectly (see below).  

Reproducible: Always
Steps to Reproduce:
1.Open URL above.
2.Make sure the FireFox download pref "Save all files to this folder" is set 
3.Download gxine-0.3.3.tar.gz multiple times.

Actual Results:  
The first download gets named gxine-0.3.3.tar.gz
The second download of the same file gets named gxine-1.3.3.tar.gz (since 0.3.3
already exists).
The third download of the same file gets named gxine-2.3.3.tar.gz (since 0.3.3
and 1.3.3. already exist).
And so on.
The same behavior occurs if you download xine-lib-1-rc7.tar.gz multiple times
except that -# gets appended after the 7 (xine-lib-1-rc7-1.tar.gz).

Expected Results:  
I would have thought that FireFox would have asked, "Would you like to overwrite
gxine-0.3.3.tar.gz?" rather than automatically and in many cases incorrectly
(especially in the case of tar and rpm files which use tend to use -# as version
numbers) incrementing the file which falsely changes the version number of the file.

*** This bug has been marked as a duplicate of 231048 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.