After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 522230 - Misbehaviour when downloading the same file twice
Misbehaviour when downloading the same file twice
Status: RESOLVED WONTFIX
Product: epiphany
Classification: Core
Component: Downloads
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks: 307210
 
 
Reported: 2008-03-13 13:24 UTC by Steve Frécinaux
Modified: 2011-04-01 17:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steve Frécinaux 2008-03-13 13:24:16 UTC
When someone clicks two times on the same file, it is downloaded twice, with a different name (ephy appends a '(1)' to the file name). This is annoying because you can quickly have ten copies of the same file hanging around ('cause you're downloading a PDF from an intranet or something like that).

I think epiphany should *not* create a new file name when the downloaded file has already been downloaded. I know you can't know before having downloaded the file, but you could do something similar by removing the '(1)' file and opening the old one when the md5sums matches, or something like that, as a workaround.
Comment 1 Reinout van Schouwen 2008-03-13 13:58:53 UTC
Which distro/backend? This bug contradicts bug 171116. 
See also bug 307210.
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2008-09-03 18:23:12 UTC
The problem is that the path is build before the file is downloaded, we can't know the md5sum of the file being downloaded before it is downloaded.
So we would need to download to /tmp/, md5sum and move the file to the new location with -%d appended to the name or open the already existing file.

We would always download the file twice, I don't know what could we do, suggestions? The /tmp thing would face the problem that it can run out of space or we can use something like a .tmp extension, the later would be preferable I think.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2011-04-01 17:12:11 UTC
Overdoing it, IMHO, I rather have duplicates in the downloads dir than misteriously showing the same file when downloading two different things.