Closed
Bug 341771
Opened 18 years ago
Closed 18 years ago
download manager does not overwrite existing files after confirmation
Categories
(Toolkit :: Downloads API, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8.1beta1
People
(Reporter: c.ascheberg, Assigned: Waldo)
References
()
Details
(Keywords: fixed1.8.1, regression, Whiteboard: 181b1+)
Attachments
(1 file)
1.14 KB,
patch
|
mconnor
:
review+
darin.moz
:
approval1.8.1+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a3) Gecko/20060616 BonEcho/2.0a3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a3) Gecko/20060616 BonEcho/2.0a3 The download manager does not overwrite existing even if you cofirm to do so Reproducible: Always Steps to Reproduce: 1. Finish downloading any file 2. Start downloading the same file into the same folder 3. Say yes to overwrite existing file Actual Results: A second file with an index-number is created (for example Firefox Setup 1.5.0.4(2).exe) Expected Results: Existing file should be overwritten
Reporter | ||
Updated•18 years ago
|
Keywords: regression
Reporter | ||
Updated•18 years ago
|
Version: unspecified → 2.0 Branch
Comment 1•18 years ago
|
||
I have been seeing the same in trunks. I suspect fallout from : https://bugzilla.mozilla.org/show_bug.cgi?id=255942 WinXP SP2 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060616 Minefield/3.0a1,Firefox ID:2006061604 [cairo]
Comment 2•18 years ago
|
||
How could it be fallout from bug 255942 if the reporter sees this on the 1.8.1 branch and bug 255942 hasn't landed there?
Comment 3•18 years ago
|
||
This apparently regressed between: 2006060804 build and 2006060904 build The download file is overwritten as expected in the 06-08 build and with the 06-09 build - the file is numbered/indexed - Fileinstaller(2).exe sorry for placing blame on the wrong bug in my comment above.
Comment 4•18 years ago
|
||
(In reply to comment #3) > This apparently regressed between: > 2006060804 build and > 2006060904 build > > The download file is overwritten as expected in the 06-08 build and with the > 06-09 build - the file is numbered/indexed - Fileinstaller(2).exe > > sorry for placing blame on the wrong bug in my comment above. > Perhaps this is the bugfix that caused the regress: https://bugzilla.mozilla.org/show_bug.cgi?id=236514
Updated•18 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 5•18 years ago
|
||
Yeah, this looks like me. :-\ Look for a fix soon, but not too soon -- I've got other things that are more important at the moment.
Assignee: nobody → jwalden+bmo
Reporter | ||
Comment 6•18 years ago
|
||
This does not happen when you do a right-click on the link and choose "Save Link As...", but it happens when you just left-click.
Reporter | ||
Comment 7•18 years ago
|
||
(In reply to comment #6) > This does not happen when you do a right-click on the link and choose "Save > Link As...", but it happens when you just left-click. > I think i just realized that this does not really matter ;-) But shouldn't this be fixed for beta1 or what do you think?
![]() |
||
Updated•18 years ago
|
Flags: blocking1.9a1?
Flags: blocking-firefox2?
Assignee | ||
Comment 8•18 years ago
|
||
If we can somehow edit or remove the chosen file if it exists but not create it if it doesn't, the user's file will be deled and he'll get a pseudo-bogus error. (That's what I think should happen; testing on my system suggests that some sort of caching may occur such that the save actually happens correctly in some cases.) If this is possible, it's probably worth caring about, but it's enough of an edge case that I think it's a negligible concern for now which can be picked up after b1 if desired.
Attachment #226762 -
Flags: review?(mconnor)
Updated•18 years ago
|
Flags: blocking1.9a1?
Flags: blocking1.9a1+
Flags: blocking-firefox2?
Flags: blocking-firefox2+
Comment 9•18 years ago
|
||
*** Bug 342616 has been marked as a duplicate of this bug. ***
Updated•18 years ago
|
Whiteboard: 181b1+
Updated•18 years ago
|
Target Milestone: --- → Firefox 2 beta1
Comment 10•18 years ago
|
||
Still happening. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060627 Minefield/3.0a1 - Build ID: 2006062723
Comment 11•18 years ago
|
||
Fabio, considering that this bug is not resolved as FIXED, the attached patch has not been checked in or even reviewed, and there is no fixed1.8.1 keyword in this bug then I would assume the assertion you just made to be completely valid.
Comment 12•18 years ago
|
||
Adam, I presumed (wrongly) that you guys wanted some feedback on the last hourly... My comment was out of order. Sorry about that...
Assignee | ||
Comment 13•18 years ago
|
||
(In reply to comment #10) > Still happening. Generally, bugs don't just fix themselves, so the default assumption for a non-UNCONFIRMED bug is that the bug still exists and needs no confirmation. Consequently, comments which confirm this are usually unuseful unless preceded by a comment from a developer requesting independent confirmation that the bug does or does not exist. On the other hand, if you suddenly notice a still-open bug no longer exists, saying so is usually a good idea. :-) Just be sure to read through the bug anyway to see if there are any unusual circumstances (e.g., steps to reproduce have changed, the summary is inaccurate, there are comments specifically saying that the bug still exists even tho it may appear that it doesn't, the bug's filed against a different product from the one against which you tested, etc.).
Status: NEW → ASSIGNED
Updated•18 years ago
|
Whiteboard: 181b1+ → 181b1+ [needs review mconnor]
Comment 14•18 years ago
|
||
Comment on attachment 226762 [details] [diff] [review] Remove the target file before uniquifying target I'm curious about whether this regresses the original bug, but assuming that it does not (haven't heard a definitive answer from Jeff yet) r=me
Attachment #226762 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 15•18 years ago
|
||
(In reply to comment #14) > I'm curious about whether this regresses the original bug, but assuming that > it does not (haven't heard a definitive answer from Jeff yet) r=me No, it doesn't. The original bug was that you could use Save As to save a file to a location, and then while that file was downloading you could save another file to the same location and silently override the first download. By the time the file removal code is reached in this patch, the user has explicitly chosen to download the file to a specific location. If a download is already happening to that location, then the user had to say yes to an "overwrite this file?" dialog, explicitly giving permission to download something else to that location. Patch checked in on trunk, marking FIXED, will ask for branch approval in a sec...
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Hardware: PC → All
Resolution: --- → FIXED
Assignee | ||
Comment 16•18 years ago
|
||
Comment on attachment 226762 [details] [diff] [review] Remove the target file before uniquifying target This patch should be fairly low-risk; its effects are confined to the case where the user is always asked where to save files, saves a file with one name to a location, and then attempts to save another file with the same name to that location as well. The patch only does anything if the user, on the second time through, explicitly chooses to overwrite the existing file during download initialization, and in that case it's therefore safe to remove the file.
Attachment #226762 -
Flags: approval1.8.1?
Updated•18 years ago
|
Whiteboard: 181b1+ [needs review mconnor] → [need-a] 181b1+
Comment 17•18 years ago
|
||
Comment on attachment 226762 [details] [diff] [review] Remove the target file before uniquifying target a=darin on behalf of drivers
Attachment #226762 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 18•18 years ago
|
||
Patch checked in on branch. Also, FTR, I tweaked the comment in the patch a little before checkin to make it more informative -- no code changes, tho. :-)
Keywords: fixed1.8.1
Updated•18 years ago
|
Whiteboard: [need-a] 181b1+ → 181b1+
Updated•15 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•