Closed Bug 1912455 Opened 1 year ago Closed 1 year ago

Clicking pause at 100% and then resume results in "Download failed"

Categories

(Firefox for Android :: Downloads, defect)

All
Android
defect

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox130 --- wontfix
firefox136 --- wontfix
firefox137 --- verified
firefox140 --- verified

People

(Reporter: npoon, Assigned: giorga)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid] [group4])

Attachments

(3 files, 1 obsolete file)

Attached video Screen_recording_20240806_105522.mp4 (obsolete) —

Steps to reproduce

  1. Start downloading a file (from this site for example)
  2. Press pause when the download notification has reached 100% but "Download completed" has not shown yet.
    i. If the download notification does not hit 100% (i.e. it goes from x% to "Download completed" where x < 100), try downloading again.
  3. Press resume
  4. Observe that the notification shows "Download failed". However, if we go to the downloads directory, the download actually has not failed and can be successfully played.

Expected behavior

The notification should have said "Download completed".

Actual behavior

The notification says "Download failed".

Device information

  • Firefox version: 130
  • Android device model: Samsung A35
  • Android OS version: Android 14
Blocks: 1904019
Severity: -- → S3
Attachment #9418527 - Attachment is obsolete: true

Logcat stack trace:

ACTION_RESUME for 51e55713-f013-4fa9-9947-1ec7fa2b86a9
2024-08-06 10:41:39.352  1842-2322  DownloadMiddleware      org.mozilla.fenix.debug              D  Updated download BigBuckBunny(5).mp4 on the storage
2024-08-06 10:41:39.353  1842-7945  AbstractFe...oadService org.mozilla.fenix.debug              D  Starting download for 51e55713-f013-4fa9-9947-1ec7fa2b86a9 
2024-08-06 10:41:39.421  1842-7945  AbstractFe...oadService org.mozilla.fenix.debug              D  Fetching download for 51e55713-f013-4fa9-9947-1ec7fa2b86a9 
2024-08-06 10:41:39.424  1842-7945  AbstractFe...oadService org.mozilla.fenix.debug              D  Unable to fetching Download for 51e55713-f013-4fa9-9947-1ec7fa2b86a9 status FAILED
2024-08-06 10:41:39.425  1842-2322  DownloadMiddleware      org.mozilla.fenix.debug              D  Updated download BigBuckBunny(5).mp4 on the storage
2024-08-06 10:41:39.764  1842-1842  NotificationManager     org.mozilla.fenix.debug              I  org.mozilla.fenix.debug: notify(100, null, Notification(channel=mozac.... shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x200 color=0xff592acb groupKey=mozac.feature.downloads.group vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
2024-08-06 10:41:39.771  1842-1842  NotificationManager     org.mozilla.fenix.debug              I  org.mozilla.fenix.debug: notify(998369038, null, Notification(channel=mozac.... shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x8 color=0xff592acb category=err groupKey=mozac.feature.downloads.group actions=2 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
2024-08-06 10:41:42.931 26397-26397 ViewRootIm...59368[App] org.mozilla.fenix                    I  onDisplayChanged oldDisplayState=2 newDisplayState=2
2024-08-06 10:41:42.931  1842-1842  ViewRootIm...e85b3[App] org.mozilla.fenix.debug              I  onDisplayChanged oldDisplayState=2 newDisplayState=2
Assignee: nobody → giorga
Status: NEW → ASSIGNED
Whiteboard: [fxdroid] [group4]
Pushed by giorga@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e4a2ce63fcbd Clicking pause at 100% and then resume should not result in "Download failed". r=android-reviewers,npoon
Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch

Verified as fixed in the latest Nightly 137.0a1 from 02/05 with Samsung GalaxyZ Fold 4 (Android 14). The download no longer fails after tapping the "Resume" button.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(giorga)
Flags: needinfo?(giorga)
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Pushed by npoon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d5b8b77ae877 Don't make a client request when user clicks pause at 100% and then resume r=android-reviewers,rsainani
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED

Verified as fixed on the latest Firefox for Android Nightly 140.0a1 with a Google Pixel 6 (Android 16), and a Xiaomi Mi8 Lite (Android 10).
Pausing a download at 100% and resuming displays the "Download complete" snackbar.

Flags: qe-verify+
Severity: S3 → S2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: