GNOME Bugzilla – Bug 307210
Autodownload filename annoyments
Last modified: 2011-05-16 22:57:05 UTC
1. Click on a foo.tar.gz link 2. Choose to open it 3. Click on a foo.tar.gz link (the same name, maybe another link...) 4. File is named foo.tar-1.gz and it confuses the hell out of file-roller. In embed/mozilla/MozDownload.cpp: BuildDownloadPath We should check whether the suffix of the file being downloaded is known (through gnome-vfs, shared-mime-info carries this information), and use that as the delimiter: foo.tar.gz has an extension of .tar.gz so the second instance should be called foo-1.tar.gz
I really can't repro. Epiphany takes care of such compressed extensions since v1.6 at least (parse_extension and file_is_compressed functions called from BuildDownloadPath function). Also, I never see such a name, foo.tar-1.gz, when downloading but foo.tar.1.gz yes. Is it a typo ? Can you tell us your version (I see CVS HEAD in the bug report but I doubt :) ). Jean-François.
I verified that the same problem existed in CVS HEAD, but the discussion dates back from last year, in a private e-mail conversation with Marco and Xan. Having "foo.tar.1.gz" is just a slightly different name, but the exact same problem...
Can you still reproduce this? This bug contradicts bug 171116 (which I can't reproduce either, btw)
Try to open a foo.tar.gz file directly from Epiphany. Close file-roller. Revisit the page and click the link again. Choose "Open" once again. File-roller doesn't know how to handle the new file.
I see the filename being .tar-1.gz but file-roller can still open it here... I thought we had some code to check for double-extensions, maybe it's broken?
*** Bug 332126 has been marked as a duplicate of this bug. ***
I can't check with a locale different from italian right now, but both the testcases in this bug and in the duplicate bug #332126 produce foo(1).tar.gz and bar(1).ps.gz, so I think this is obsolete. Can someone with a different locale test this again?
I'm currently using epiphany 2.20.1, with firefox-2.0.0.8-2.fc8, and I still see the problem. 1. Click on http://0pointer.de/lennart/projects/gst-pulse/gst-pulse-0.9.7.tar.gz 2. Choose "Open", file is opened correctly with file-roller 3. Click on http://0pointer.de/lennart/projects/gst-pulse/gst-pulse-0.9.7.tar.gz again 4. Choose "Open", file-roller opens gst-pulse-0.9.7.tar-1.gz, and shows only gst-pulse-0.9.7.tar-1 as the file in the archive
Same problem with 2.21.5 and xulrunner as the backend.
I use "LC_ALL=en_GB.UTF-8" as my locale (if that makes any difference).
Right I can repro with the steps from comment 8.
Could this be related to ungzipped text still being saved with .gz extension? I mean, the (dot)(something) is being appended separately of the file status. Like appending the -1 to tar and not to gz, and appending gz to something already uncompressed.
Couldn't reproduce with ephy from master, the (1) was put before the .tar.gz. The code there for auto downloads is a bit different, reopen if you hit this again.
Yep, works fine here now (called gst-pulse-0.9.7(1).tar.gz)