Closed Bug 1770683 Opened 3 years ago Closed 3 years ago

linux download filename has extra .tar

Categories

(Firefox :: File Handling, defect, P1)

Firefox 102
Desktop
All
defect
Points:
3

Tracking

()

VERIFIED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox100 --- unaffected
firefox101 --- unaffected
firefox102 + verified

People

(Reporter: pf, Assigned: enndeakin)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-2022-downloads-followup])

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

firefox-102.0a1.en-US.linux-x86_64.tar.bz2 is posted as:
firefox-102.0a1.en-US.linux-x86_64.tar.bz2.tar <====<<<

This started after May 8. I always use the tar command out of my history, so I've been running the 05-08 version since then. Tonight, it was obvious something had to be wrong... tracked it down to my issuing:
tar xf firefox-102.0a1.en-US.linux-x86_64.tar.bz2
all this time until noticing the newer files have .tar added which makes no sense.

Actual results:

Someone updated a script..?

Expected results:

More careful editing... :)

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Component: Widget: Gtk → File Handling
Ever confirmed: true
Keywords: regression
OS: Unspecified → All
Product: Core → Firefox
Regressed by: 1746052
Hardware: Unspecified → Desktop

:enndeakin, since you are the author of the regressor, bug 1746052, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(enndeakin)
Whiteboard: [fidefe-2022-downloads-followup]
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Flags: needinfo?(enndeakin)

Neil, between this and bug 1768898 I had another look at the patch in https://phabricator.services.mozilla.com/D135951 . My impression is that in GetFilenameAndExtensionFromChannel, we used to only overwrite the extension if there wasn't an extension present at all, whereas here we are (I think) always overwriting it if the mimetype and extension don't match. Given that 102 is also an ESR release, can we relax this overwriting of extensions more generically, without losing all the gains from bug 1746052? I'm worried that the compression thing and JSON/XML/ZIP (from bug 1768898) are just the tip of the iceberg.

Severity: -- → S2
Flags: needinfo?(enndeakin)
Priority: -- → P1

This is closer to the behaviour before bug 1746052. Also adds some tests for compressed types.

Attachment #9278312 - Attachment is obsolete: true
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7ddfc8dd77aa only replace or append the correct extension for media types, and some selected content types, or if the extension is not present, r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Points: --- → 3
Flags: needinfo?(enndeakin)

I managed to reproduce this issue on a 2022-05-22 Nightly build on Ubuntu 20.04. Verified as fixed on Firefox 102.0b4(20220605185654) and Nightly 103.0a1(20220606212503) on Windows 10 x64, macOS 11 and Ubuntu 20.04.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

== Change summary for alert #34418 (as of Sat, 11 Jun 2022 02:56:33 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
6% perf_reftest_singletons parent-basic-singleton.html macosx1015-64-shippable-qr e10s fission stylo webrender 69.66 -> 65.60
6% perf_reftest_singletons attr-selector-1.html macosx1015-64-shippable-qr e10s fission stylo webrender 124.35 -> 117.20

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=34418

(In reply to Andrej (:andrej) from comment #11)

== Change summary for alert #34418 (as of Sat, 11 Jun 2022 02:56:33 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
6% perf_reftest_singletons parent-basic-singleton.html macosx1015-64-shippable-qr e10s fission stylo webrender 69.66 -> 65.60
6% perf_reftest_singletons attr-selector-1.html macosx1015-64-shippable-qr e10s fission stylo webrender 124.35 -> 117.20

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=34418

FWIW I'm fairly sure this is misattributed...

Flags: needinfo?(dave.hunt)
Flags: needinfo?(aglavic)

It is, I seem to have copied the wrong alert summary thank you for bringing this to my attention

Flags: needinfo?(dave.hunt)
Flags: needinfo?(aglavic)
Regressions: 1778597
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: