Closed Bug 1880023 Opened 2 years ago Closed 1 year ago

Download fails when the filename is too long.

Categories

(Firefox for Android :: Downloads, defect)

Firefox 124
All
Android
defect

Tracking

()

VERIFIED FIXED
136 Branch
Tracking Status
firefox123 --- wontfix
firefox124 --- wontfix
firefox131 --- wontfix
firefox132 --- wontfix
firefox133 --- wontfix
firefox134 --- wontfix
firefox135 --- wontfix
firefox136 --- verified

People

(Reporter: kirix.isakov, Assigned: calu)

References

Details

(Whiteboard: [qa-triaged] [fxdroid] [group4])

Attachments

(6 files, 1 external file, 1 obsolete file)

User Agent: Mozilla/5.0 (Android 9; Mobile; rv:124.0) Gecko/124.0 Firefox/124.0

Steps to reproduce:

  1. Go to https://www.picuki.com/media/3292489332571783131
  2. Click on the Download button

Actual results:

Download fails

Expected results:

A "Save as" prompt would have allowed me to rename the file, since its name is obviously too long. See screenshot.

Summary: Download failed when the filename is too long → Download fails when the filename is too long. Add "Save as" dialog so the user can rename the file before download it
Summary: Download fails when the filename is too long. Add "Save as" dialog so the user can rename the file before download it → Download fails when the filename is too long. Add "Save as" dialog so the user can rename the file before downloading

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

Component: General → Downloads

I was able to reproduce this on all the latest builds: Firefox for Android 123.0, Beta 123.0b9, and Nightly 124.0a1, with the following devices:

  • Xiaomi mi8 Lite (Android 9),
  • Google Pixel 6 (Android 14), and
  • Samsung Galaxy A14 (Android 13).

I'll confirm this ticket.
Thank you for the report!

Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [qa-triaged]
See Also: → 1892090
See Also: → 1812786
Severity: -- → S2
Type: enhancement → defect
URL: 1910185
See Also: → 1910185
Whiteboard: [qa-triaged] → [qa-triaged] [fxdroid] [group4]
Summary: Download fails when the filename is too long. Add "Save as" dialog so the user can rename the file before downloading → Download fails when the filename is too long.
Attached image Download_error.png —

This issue is also reproducible in the latest releases: Nightly 133.0a1, Beta 132.0b5, Release 131.0, Dot Release 131.0.2.
Tested with Samsung Galaxy S22 Ultra (Android 14), Lenovo Yoga Tab 11 (Android 12) and Google Pixel (Android 10) on the following websites:

Attachment #9459435 - Attachment filename: he band's original 1968–1976 run, are officially indicated as Mark I (1968–1969), Mark II (1.pdf → Ian Gillan, Don Airey and Simon McBride comprise the current line-up of Deep Purple. Deep Purple.pdf
Assignee: nobody → calu

Comment on attachment 9461143 [details]
Bug 1812785 - Include application/x-pdf as download mime type

Revision D235233 was moved to bug 1812785. Setting attachment 9461143 [details] to obsolete.

Attachment #9461143 - Attachment is obsolete: true
Attachment #9461143 - Attachment is obsolete: false
Attachment #9461143 - Attachment description: Bug 1880023 - Include application/x-pdf as download mime type → Bug 1812785 - Include application/x-pdf as download mime type

Comment on attachment 9461143 [details]
Bug 1812785 - Include application/x-pdf as download mime type

Revision D235233 was moved to bug 1812785. Setting attachment 9461143 [details] to obsolete.

Attachment #9461143 - Attachment is obsolete: true
Pushed by calu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/45f5a66f42ea Truncate long file names for downloading r=android-reviewers,tthibaud
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch

The patch landed in nightly and beta is affected.
:calu, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox135 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(calu)
Flags: needinfo?(calu)
Attached video FenixCrash.mp4 —

Tested this fix on Firefox Nightly 136 (2025-01-31) and it seems that the app crashes when tapping on the "dw loooong named file" button in order to download a file with a very long name.

It reproduces on several devices Samsung S24 Ultra (Android 14), OPPO A15s (Android 10), Samsung Galaxy A53 5G (Android 14), Motorola Nexus 6 (Android 8), Google Pixel 9 Pro XL (Android 15).

The crash is being tracked in the follow-up issue Bug 1945107, so this bug can now be closed.

Status: RESOLVED → VERIFIED
Blocks: 1946152
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: