Closed
Bug 981539
Opened 10 years ago
Closed 10 years ago
[Download Manager] A strange message is displayed when the SD is completely full
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:1.4+, firefox29 wontfix, firefox30 fixed, firefox31 fixed, b2g-v1.4 fixed, b2g-v2.0 fixed)
People
(Reporter: rafael.marquez, Assigned: aus)
References
Details
(Whiteboard: [systemsfe][p=3])
Attachments
(5 files, 1 obsolete file)
*Pre-requisites Having a SD card inserted which is full with 1 Mb free *Procedure 1. Open browser app 2. Open a webpage whitch you can download files. 3. Download a file which has a size bigger than the empty space in the sd card. A correct error message is displayed "correct.JPG" (attached image) 4. Open a webpage whitch you can download files. 5. Download a file which has a size bigger than the empty space in the sd card. *Actual Result Two no correct messages are displayed "no correct 1.JPG" and "no correct 2.JPG" (attached images) *Expected Result The message shown in the screenshot "correct.JPG" is displayed in both cases
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
Reporter | ||
Comment 3•10 years ago
|
||
Francis, Can you verify if my opinion is correct?
Flags: needinfo?(fdjabri)
Whiteboard: [systemsfe]
Updated•10 years ago
|
Blocks: fxos-download-mgr
Reporter | ||
Updated•10 years ago
|
blocking-b2g: --- → 1.4?
Comment 4•10 years ago
|
||
Hi Rafael, yes that's correct and according to the spec. Thanks for picking up on this.
Flags: needinfo?(fdjabri)
Reporter | ||
Comment 5•10 years ago
|
||
Aus, According to comment 4, the UI that we should show is this one https://bugzilla.mozilla.org/attachment.cgi?id=8388419 as Gaia does. Furthermore, there are two consecutive error messages. Thanks a lot
Flags: needinfo?(aus)
Updated•10 years ago
|
blocking-b2g: 1.4? → 1.4+
Assignee | ||
Comment 6•10 years ago
|
||
Currently we do not do any space check before starting a download. Furthermore, it's not always possible for us to do so. Do we not get an error attached to the download object with a state change when the SD card becomes full during download?
Flags: needinfo?(aus)
Comment 7•10 years ago
|
||
Yes, this error is displayed when we receive an 'stopped' state with error !== null https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/download/download_notification.js#L82
Assignee | ||
Comment 8•10 years ago
|
||
OK, good! :) We should be able to add additional checks when we see the error in the Downloads API itself and provide a better error message. Or we could try and get the underlying necko bits that fail to write to disk to provide a better error. We'll see which one makes more sense once I dig into this a little bit more.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → aus
Target Milestone: --- → 1.4 S4 (28mar)
Reporter | ||
Comment 9•10 years ago
|
||
any update to this bug?
Assignee | ||
Comment 10•10 years ago
|
||
Unfortunately no, this is likely to only get my attention next week as other issues have become more complex than expected.
Assignee | ||
Comment 11•10 years ago
|
||
OK, this should be easier to fix if we go for the more elaborate solution in bug 982006, if we don't, it will be a minor patch to the External Helper App Service once again to provide the original leaf name of the file when available instead of the temporary filename (and full path! ugh!) of the download.
Status: NEW → ASSIGNED
Depends on: 982006
Updated•10 years ago
|
Target Milestone: 1.4 S4 (28mar) → 1.4 S5 (11apr)
Assignee | ||
Comment 12•10 years ago
|
||
I'm hoping now that 982006 has landed that we'll be able to resolve this quickly.
Whiteboard: [systemsfe] → [systemsfe][p=3]
Assignee | ||
Comment 13•10 years ago
|
||
OK, unfortunately, this will require handling the write errors that occur when running out of space differently than how gecko currently handles them. I should have something tomorrow that fixes the issue (and gets rid of the extra alert).
Assignee | ||
Comment 14•10 years ago
|
||
Attachment #8401623 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 15•10 years ago
|
||
Attachment #8401627 -
Flags: review?(crdlc)
Comment 16•10 years ago
|
||
Comment on attachment 8401623 [details] [diff] [review] Patch - v1 - Ensure mTransfer instance in case of failure when OnSaveComplete is called. r=me
Attachment #8401623 -
Flags: review?(bzbarsky) → review+
Comment 17•10 years ago
|
||
Comment on attachment 8401627 [details] [review] Pull Request - Handle new error returned for no disk space. Good job, thanks
Attachment #8401627 -
Flags: review?(crdlc) → review+
Assignee | ||
Comment 18•10 years ago
|
||
* Fixed compile error in release mode by removing unused variable.
Attachment #8401623 -
Attachment is obsolete: true
Attachment #8401906 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 19•10 years ago
|
||
Gaia commit (master): https://github.com/mozilla-b2g/gaia/commit/c8e974e69c764b953263c7474d10c25aa68bb862
Assignee | ||
Updated•10 years ago
|
status-b2g-v1.4:
--- → affected
Comment 20•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b07cc963d7a1
Keywords: checkin-needed
Comment 21•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b07cc963d7a1
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 22•10 years ago
|
||
v1.4: https://github.com/mozilla-b2g/gaia/commit/c860837d1bb02ed91d9277ff38e9bfec2ae1c99d https://hg.mozilla.org/releases/mozilla-aurora/rev/b603af7051a9
status-b2g-v2.0:
--- → fixed
status-firefox29:
--- → wontfix
status-firefox30:
--- → fixed
status-firefox31:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•