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)
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed)
Tracking | Status | |
---|---|---|
b2g-v1.4 | --- | fixed |
People
(Reporter: rafael.marquez, Assigned: crdlc)
References
Details
(Whiteboard: [systemsfe])
Attachments
(3 files)
*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
Reporter | ||
Updated•12 years ago
|
QA Contact: rafael.marquez
Whiteboard: [systemsfe]
Updated•12 years ago
|
blocking-b2g: --- → 1.4?
Updated•12 years ago
|
Blocks: fxos-download-mgr
Assignee | ||
Comment 1•12 years ago
|
||
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)
Reporter | ||
Comment 2•12 years ago
|
||
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"
Assignee | ||
Comment 3•12 years ago
|
||
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
Comment 4•12 years ago
|
||
What happens when connection is regained? Does the download resume or, is it resumable?
Flags: needinfo?(aus)
Updated•12 years ago
|
Flags: needinfo?(crdlc)
Assignee | ||
Comment 5•12 years ago
|
||
The download is resumed automatically if the device is online again although I will double check it
Flags: needinfo?(crdlc)
Assignee | ||
Comment 6•12 years ago
|
||
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)
Comment 7•12 years ago
|
||
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. :)
Comment 8•12 years ago
|
||
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)
Comment 9•12 years ago
|
||
Just to clarify - given that we can't reliably detect if the download is resumable in advance, let's stick with the current behaviour. :)
Updated•12 years ago
|
Flags: needinfo?(aus)
Assignee | ||
Comment 10•12 years ago
|
||
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.
Reporter | ||
Comment 12•12 years ago
|
||
Flags: needinfo?(rafael.marquez)
Reporter | ||
Comment 13•12 years ago
|
||
* 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.
Assignee | ||
Comment 14•12 years ago
|
||
OK, I understand. We have a visual issue in download list. OK thanks for your help!
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → crdlc
Status: NEW → ASSIGNED
Assignee | ||
Comment 15•12 years ago
|
||
Thanks guys for the review
Attachment #8361018 -
Flags: review?(kaze)
Attachment #8361018 -
Flags: review?(borja.bugzilla)
Comment 16•12 years ago
|
||
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)
Assignee | ||
Updated•12 years ago
|
Attachment #8361018 -
Flags: review?(kaze)
Attachment #8361018 -
Flags: review?(borja.bugzilla)
Assignee | ||
Comment 17•12 years ago
|
||
This bug was fixed for this commit (bug 957584):
https://github.com/mozilla-b2g/gaia/commit/96d2fb464261463f9cbc56dd5fcbc77c52a67e99
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Target Milestone: --- → 1.3 C2/1.4 S2(17jan)
Reporter | ||
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Flags: needinfo?(rafael.marquez)
Updated•11 years ago
|
blocking-b2g: 1.4? → 1.4+
Updated•11 years ago
|
status-b2g-v1.4:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•