Closed
Bug 396477
Opened 16 years ago
Closed 16 years ago
DM renames many files with double extension, e.g. filename.exe.exe
Categories
(Toolkit :: Downloads API, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.9beta1
People
(Reporter: By-Tor, Assigned: Mardak)
References
Details
(Keywords: regression)
Attachments
(2 files)
2.65 KB,
image/png
|
Details | |
1.01 KB,
patch
|
sdwilsh
:
review+
mconnor
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007091705 Minefield/3.0a8pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007091705 Minefield/3.0a8pre Since the landing of Bug 395308 executable files are renamed with a dual extension, .exe.exe. Other file types seem unaffected. Reproducible: Always Steps to Reproduce: 1. download .exe file 2. 3. Actual Results: .exe file is renamed filename.exe.exe Expected Results: File should be saved as original file name.
Reporter | ||
Updated•16 years ago
|
Keywords: regression
Version: unspecified → Trunk
Updated•16 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•16 years ago
|
Component: Download Manager → File Handling
Product: Firefox → Core
QA Contact: download.manager → file-handling
Updated•16 years ago
|
Flags: blocking1.9?
This also happens with other file types, at least under Windows. To make things even worse: If you try to save a file overwriting an existing file with the same name, Firefox asks if the existing file should be replaced but instead, the downloaded file is renamed and it is given the double extension. See my attachment (Screenshot).
Updated•16 years ago
|
Summary: DM renames executable files with double extension, i.e. filename.exe.exe → DM renames many files with double extension, i.e. filename.exe.exe
Updated•16 years ago
|
Assignee: nobody → comrade693+bmo
Target Milestone: --- → mozilla1.9 M9
Updated•16 years ago
|
Summary: DM renames many files with double extension, i.e. filename.exe.exe → DM renames many files with double extension, e.g. filename.exe.exe
Comment 4•16 years ago
|
||
Still present under Vista and Vista SP1 on Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a8pre) Gecko/2007091904 Minefield/3.0a8pre
Updated•16 years ago
|
Flags: in-litmus?
Comment 5•16 years ago
|
||
Just to clarify - is this windows only? If so, I think I see what *may* be the problem, but I'm not 100% sure still. For my reference: http://bonsai.mozilla.org/cvsblame.cgi?file=/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp&rev=1.345#2096
Comment 6•16 years ago
|
||
Looks like it is windows only since I cannot reproduce this on my mac.
Comment 7•16 years ago
|
||
What other bugs landed in this window? I'm not really sure if Bug 395308 actually caused this...
Keywords: qawanted
Comment 8•16 years ago
|
||
Regression window: http://tinyurl.com/2jpte5
Comment 9•16 years ago
|
||
It's present on Linux. Happened a few times for me. I just downloaded a gzip archive and ended up with .tar.gz.gz. Interestingly, it also appends .exe to any binary file -- for example, .iso.exe.
Comment 10•16 years ago
|
||
I'm seeing something odd here: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/xpcom/io/nsLocalFileOS2.cpp&rev=1.96&root=/cvsroot#2167 There once was a return there, maybe that's the culprit. If I'm correct, this file is not only about OS/2 filename stuff?
Comment 11•16 years ago
|
||
This is about in general, though I haven't been able to reproduce it on the mac (I haven't tried a tar.gz file however).
Assignee | ||
Comment 12•16 years ago
|
||
Definitely regressed with bug 395308 because now tempFile.isExecutable() doesn't work.
Assignee: comrade693+bmo → nobody
Component: File Handling → Download Manager
Flags: blocking1.9?
Product: Core → Firefox
QA Contact: file-handling → download.manager
Target Milestone: mozilla1.9 M9 → Firefox 3 M9
Assignee | ||
Comment 13•16 years ago
|
||
Don't use this.mLauncher.targetFile.isExecutable because it'll give us the wrong information. Append the primary extension only if it doesn't already have it.
Assignee | ||
Comment 14•16 years ago
|
||
These tryserver builds have bug 396477 and bug 396701 potentially fixed. win32: https://build.mozilla.org/tryserver-builds/137-edward.lee@engineering.uiuc.edu-firefox-try-win32.installer.exe macosx: https://build.mozilla.org/tryserver-builds/130-edward.lee@engineering.uiuc.edu-firefox-try-mac.dmg linux: https://build.mozilla.org/tryserver-builds/130-edward.lee@engineering.uiuc.edu-firefox-try-linux.tar.bz2
Assignee | ||
Updated•16 years ago
|
Flags: blocking-firefox3?
Comment 15•16 years ago
|
||
Comment on attachment 283067 [details] [diff] [review] v1 r=sdwilsh
Attachment #283067 -
Flags: review?(comrade693+bmo)
Attachment #283067 -
Flags: review+
Attachment #283067 -
Flags: approval1.9?
Comment 16•16 years ago
|
||
Testing with WinXP Pro SP2, with Mardak test build. As far as I can tell, it's fixed.
Updated•16 years ago
|
Attachment #283067 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 17•16 years ago
|
||
Checking in toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in; /cvsroot/mozilla/toolkit/mozapps/downloads/src/nsHelperAppDlg.js.in,v <-- nsHelperAppDlg.js.in new revision: 1.54; previous revision: 1.53 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Comment 18•16 years ago
|
||
Seems to break double extension file downloading. Try to download firefox-3.0a9pre.en-US.linux-i686.tar.bz2 from http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ And you'll get this in error console : Error: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMIMEInfo.primaryExtension]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: file:///home/fred/Applications/firefox/components/nsHelperAppDlg.js :: anonymous :: line 219" data: no] Source File: file:///home/fred/Applications/firefox/components/nsHelperAppDlg.js Line: 219 Reopening and backing out the patch could be a good idea ? Because it is a big regression :(
Comment 19•16 years ago
|
||
WFM with 2007100304 and 2007100405 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Minefield/3.0a9pre
Comment 20•16 years ago
|
||
(In reply to comment #18) > Error: [Exception... "Component returned failure code: 0xc1f30001 > (NS_ERROR_NOT_INITIALIZED) [nsIMIMEInfo.primaryExtension]" nsresult: > "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: > file:///home/fred/Applications/firefox/components/nsHelperAppDlg.js :: > anonymous :: line 219" data: no] > Source File: > file:///home/fred/Applications/firefox/components/nsHelperAppDlg.js > Line: 219 This error is garbage and is safe to ignore (see bug 393627).
Comment 21•16 years ago
|
||
But the problem stays the same. I CANNOT donwload any file ending with tar.bz2 or tar.gz :(
Assignee | ||
Comment 22•16 years ago
|
||
I'm assuming you're running linux? WFM Windows and Mac OS X -- I can't get trunk running on Linux.
Comment 23•16 years ago
|
||
sdwilsh: that isn't the handlerservice error...
Comment 24•16 years ago
|
||
I've seen that since that code landed - I was under the impression that it was the same cause...
Comment 25•16 years ago
|
||
Erh... I thought it was related to gcc 4.2 under Gutsy AMD64. But with gcc 4.1, same problem. No file could be downloaded if it is ended like tar.bz2 / tar.gz. Could be a AMD64 bug ?!
Comment 26•16 years ago
|
||
sdwilsh: You can't assume that a mime info has a primary extension
Comment 27•16 years ago
|
||
Sorry to say that reversing the patch makes downloading working fully and completely again. Strange !
Assignee | ||
Comment 28•16 years ago
|
||
Frederic: Can you confirm that you're running firefox on linux -- and would you happen to be saving to a mounted drive that has the executable bit incorrectly set? (Or perhaps your umask has things created with executable set.) biesi: If we can't grab the primary extension, we should probably still try putting on some extension to prevent the user from accidentally creating an executable? E.g., saving a .torrent file as .exe. But then what extension should we use if we couldn't get the primary extension? Take the source's? And I suppose we could make this Windows only for bug 270159.
Comment 29•16 years ago
|
||
I am using Ubuntu Gutsy Gibbon AMD64. $ uname -a Linux fredo-gutsy 2.6.22-12-generic #1 SMP Sun Sep 23 20:03:18 GMT 2007 x86_64 GNU/Linux I want to save every single download on my main partition, in a directory named download. Here are the sets of my download directory : $ ls -al download total 12 drwxr-xr-x 2 fred fred 4096 2007-10-04 21:06 . drwxr-xr-x 50 fred fred 4096 2007-10-05 10:22 .. -rw-r--r-- 1 fred fred 1039 2007-10-04 19:59 exe.exe.patch
I'm confused; is it safe to verify this, since it's now working fine on Windows using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a9pre) Gecko/2007101905 Minefield/3.0a9pre, (and do we need to then spin off a bug for comment 29 and others), or are we going to address Frederic's issues here?
Comment 31•16 years ago
|
||
(In reply to comment #30) > I'm confused; is it safe to verify this, since it's now working fine on Windows > using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a9pre) > Gecko/2007101905 Minefield/3.0a9pre, (and do we need to then spin off a bug for > comment 29 and others), or are we going to address Frederic's issues here? He needs to file a different bug if he didn't already. This bug can be verified.
Verified FIXED on Windows Vista; see comment 30.
Status: RESOLVED → VERIFIED
Comment 33•16 years ago
|
||
This bug is fixed, mine is 398551. And it is kinda pain-in-the-*** to say the least :(
in-litmus+ https://litmus.mozilla.org/show_test.cgi?id=4994
Flags: in-litmus? → in-litmus+
Updated•15 years ago
|
Product: Firefox → Toolkit
See Also: → https://launchpad.net/bugs/485224
You need to log in
before you can comment on or make changes to this bug.
Description
•