Double-extension of downloaded file saved at ntfs or vfat

Bug #120951 reported by Arseny Solokha
0
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Unknown
firefox (Ubuntu)
In Progress
Medium
Mozilla Bugs

Bug Description

Binary package hint: firefox

Ubuntu 7.04; Firefox 2.0.0.4

When I click every link for downloading a file and choose "Download" (sorry, I work with Russian locale so I can't say how does this button/radio named), downloading begins. So, downloaded file has double extension. For example, foo.bar.bar. This name is also displaying on Download Manager. File contents doesn't broken, all works.

Steps:
1. Click to "Download" button
2. Enjoy _broken_ name in Download Manager
2`. Enjoy _broken_ name on the file system

ProblemType: Bug
Architecture: i386
Date: Mon Jun 18 16:42:36 2007
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.4+1-0ubuntu1
PackageArchitecture: i386
SourcePackage: firefox
Uname: Linux boa-0 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Tags: mt-upstream
Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :

Thank Arseny for your report,

Would you please reproduce the issue with an example we might be able to test here (i.e. an url) and describe it step by step. Since you are using Russian locale, please run firefox from a terminal as:

LANGUAGE=C firefox -safe-mode

Thank you in advance

Changed in firefox:
assignee: nobody → mozilla-bugs
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :

Hello.

Thank you for your answer.

Steps again:
1. $LANGUAGE=C firefox -safe-mode http://packages.ubuntu.com
2. "Continue Safe mode" button-click
3. ***then I found link to download 'firefox' package for i386***;
goto page http://packages.ubuntu.com/cgi-bin/download.pl?arch=i386&file=pool%2Fmain%2Ff%2Ffirefox%2Ffirefox_2.0.0.4%2B1-0ubuntu1_i386.deb&md5sum=1dc5977f11f4edee93acd533bf534a11&arch=i386&type=security
4. You can see a link with text "security.ubuntu.com/ubuntu"; click it. Dialog with text "You have chosen to open firefox_2.0.0.4+1-0ubuntu1_i386.deb" will appear.
5. Chose "Save to Disk" and click OK.
6. You'll see "firefox_2.0.0.4+1-0ubuntu1_i386.deb.deb" in the "Downloads" window.

I hope it'll be useful.
Best regards,
Arseny.

Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :

P.S. File with name "firefox_2.0.0.4+1-0ubuntu1_i386.deb.deb" will be also saved to file system.

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :

Thank you Arseny,

I've followed your steps and it works for me rightly.

Adding mt-needtester tag waiting for someone that is able to confirm this behavior.

Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :

OK, Hilario.

I've built and tested FF2.0.0.4 on Gentoo and it also works properly. But patchset was automatically applyed before building.
Firstly I thougth that problem can be in Ubunut's patches (or maybe Gentoo's patchset fix this problem), but then I decided to test Firefox behavour on other file systems. I could test it with ext3, xfs, ntfs and fat32 partitions.
Results:
1. Problem NEVER occures with xfs
2. Problem occures FROM TIME TO TIME with ext3 and fat32 (mostly seldom)
3. Probles ALWAYS occures with ntfs (driver is ntfs-3g of previous version. I'm sorry I forget it's number...)

So, (1) You shouldn't search tester and (2) the problem is mostly related to ntfs-3g.
I'm sorry for my stupidly questions.

Best regards,
Arseny.

Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :

P.S. On machine with Gentoo I have only ext3 filesystem. And problem never occures there.

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :

Thanks Arseny for your complete report,

I've done some test here too, and I can reproduce the described issue when I try to download to my ntfs-3g partition.

It doesn't happen when I test it at vfat, reiserfs or ext3.

Marking as confirmed.

Changed in firefox:
importance: Low → Medium
status: Needs Info → Confirmed
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :

hmm, done some more tests, and it is reproducible at vfat too.

If the extension is .exe then firefox saves it as .exe.bin

Looking upstream as I remember having seen this before.

Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote :

Maybe we should merge together bug 113070 and bug 120951, or wait to see if upstream duplicates bugzilla #336113 with #270159

Changed in firefox:
status: Confirmed → In Progress
Revision history for this message
Hilario J. Montoliu (hjmf) (hmontoliu) wrote : Duplicate of bug #65164

Thank you Arseny for your report,

After a deep search I've found that this particular issue has already
been reported as bug #65164 [1] (MASTER Firefox 2 can't save to
fat32/ntfs partitions (e.g. usb memory stick) - results in empty file).
Check comment #20 for a deep analysis and workaround.

Please feel free to add any other information you might consider to be
related to this particular issue (e.g. a test case) either to [1] or
[2].

As the original reporter you'll be informed by email of all comments or
changes that affects either this report or the Master Bug (bug
#65164
[1]). You can unsubscribe [3] to stop receiving this
mailing at any time.

And, of course, please don't doubt to report any other crashes/issues
you might find in the future.

Further information can be found at [4].

Again, thank you.

[1] https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/65164
[2] https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/120951
[3] https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/65164/+subscribe
[4] https://wiki.ubuntu.com/MozillaTeam/Bugs

Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :

Way, described at
https://bugzilla.mozilla.org/show_bug.cgi?id=270159
and at
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/105474
to change mount options from umask=000 to dmask=000,fmask=111 is seems to work. Thank you for this links.

But is this way legitimate? Is this "bug" or "feature"?

Revision history for this message
Arseny Solokha (asolokha-deactivatedaccount) wrote :

As far as I understood my bug appears only with Windows executable files with some users. But I have this bug with _every_ file which I save to ntfs partition mounted with ntfs-3g driver.
Maybe shall somebody test Firefox behavour with other ntfs drivers? Or problem is contained in mount options?

Changed in firefox:
status: Unknown → Confirmed
Changed in firefox:
status: Confirmed → In Progress
Changed in firefox:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.