Closed Bug 957985 Opened 12 years ago Closed 12 years ago

[Download Manager] Failed downloads are not displayed successfully in download list

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.4+, b2g-v1.4 fixed)

VERIFIED FIXED
1.3 C2/1.4 S2(17jan)
blocking-b2g 1.4+
Tracking Status
b2g-v1.4 --- fixed

People

(Reporter: rafael.marquez, Assigned: crdlc)

References

Details

(Whiteboard: [systemsfe])

Attachments

(3 files)

Attached image failed.jpg
*Procedure 1. Download a file 2. Turn off internet connection during the download proccess 3. the download is displayed as failed *Expected Result The failed download is displayed successfully (see the attached file) *Actual Result The failed download is not displayed successfully. The text failed is not displayed and the progress bar is not removed
QA Contact: rafael.marquez
Whiteboard: [systemsfe]
blocking-b2g: --- → 1.4?
Gecko: c60683e I think there is a problem when we try to access to the error attribute of the download object. Maybe it appeared during 2-3 latest weeks because before my xmas holidays it was working fine. Do you know what could be happening Ghislain? [JavaScript Error: "Return value of DOMDownload.error is not an object."]
Flags: needinfo?(aus)
In the current version the bug has changed. The failed download is not displayed successfully. The text "stopped" is displayed but should display the text "failed"
Gecko: 12dd20e Gaia-e771f17 Installing the latest build today the problem is that the download.error is null when the device loose the wifi signal although the state is stopped (this is ok). The issue is the error attribute thought. It should be different than null in this scenario. Ghislain forget my comment 1 and focus on this one. Thanks a lot
What happens when connection is regained? Does the download resume or, is it resumable?
Flags: needinfo?(aus)
Flags: needinfo?(crdlc)
The download is resumed automatically if the device is online again although I will double check it
Flags: needinfo?(crdlc)
Resumable downloads: They are resumed automatically when the device gets online. If the device loses the connection, the downloads appear like stopped (download.error === null) and when the connection is regained they are resumed automatically and it works fine. Non resumable downloads: If the device loses the connection, the downloads appear like stopped (download.error === null) and when the connection is regained, the device tries to resume them unsuccessfully and they appear as failed immediately. The first case makes sense although the second one seems weird for me. Please, UX and API input? Thanks a lot
Flags: needinfo?(fdjabri)
Flags: needinfo?(aus)
Cristian, I'll chat with Francis about it and see what he thinks. I'm not sure that we have many options at this time. It's difficult to determine whether a server will be able to resume a download or not. Some servers, for efficiency, will return an HTTP 1.0 response when clients do not send a Range header. So, detecting http 1.0 vs 1.1 wouldn't necessarily help us for all cases. We'll respond here after we chat. :)
Christian, I spoke with Aus - if we can't reliably detect if a download is non-resumable in advance, then I think the current behaviour would be ok. If we could detect that the download is non-resumable, then we should fail the download when losing connectivity, rather than putting it in the intermediate stopped state.
Flags: needinfo?(fdjabri)
Just to clarify - given that we can't reliably detect if the download is resumable in advance, let's stick with the current behaviour. :)
Flags: needinfo?(aus)
Thanks to clarify this Rafa, Could you check what current implementation works in that way? (see comment 8 and comment 9) If it works fine we will close it, right? * Resumable downloads: They are resumed automatically when the device gets online. If the device loses the connection, the downloads appear like stopped and when the connection is regained they are resumed automatically and it works fine. * Non resumable downloads: If the device loses the connection, the downloads appear like stopped and when the connection is regained, the device tries to resume them unsuccessfully and they appear as failed immediately.
Upps, I forgot the needinfo tag
Flags: needinfo?(rafael.marquez)
Attached image IntentoFallido.png
Flags: needinfo?(rafael.marquez)
* Resumable downloads: Works fine * Non resumable downloads: Has a visual problem When the connection is regained, the device tries to resume them unsuccessfully and they appear as failed immediately but progress bar doesn't disappears. See the screenshot attached.
OK, I understand. We have a visual issue in download list. OK thanks for your help!
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Attached file Patch v1
Thanks guys for the review
Attachment #8361018 - Flags: review?(kaze)
Attachment #8361018 - Flags: review?(borja.bugzilla)
Rafa, could you check this with master? I've just landed a patch which is adding https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/style/downloads.css#L223, so probably it's fixed now!
Flags: needinfo?(rafael.marquez)
Attachment #8361018 - Flags: review?(kaze)
Attachment #8361018 - Flags: review?(borja.bugzilla)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3 C2/1.4 S2(17jan)
Status: RESOLVED → VERIFIED
Flags: needinfo?(rafael.marquez)
blocking-b2g: 1.4? → 1.4+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: