Closed
Bug 1026474
Opened 10 years ago
Closed 10 years ago
[dolphin][Contacts]No Error pop up when exporting contacts to SD card, while SD card is full.
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(blocking-b2g:1.4+, b2g-v1.3 wontfix, b2g-v1.3T affected, b2g-v1.4 fixed, b2g-v2.0 unaffected, b2g-v2.1 unaffected)
Tracking | Status | |
---|---|---|
b2g-v1.3 | --- | wontfix |
b2g-v1.3T | --- | affected |
b2g-v1.4 | --- | fixed |
b2g-v2.0 | --- | unaffected |
b2g-v2.1 | --- | unaffected |
People
(Reporter: kun.tang, Assigned: arcturus)
References
()
Details
(Whiteboard: [sprd314046][p=2])
Attachments
(1 file, 1 obsolete file)
STR:
1、Insert a full SD card to the phone
2、Open the Contacts app.
3、Click on the Settings icon.
4、Click on the "Export Contacts" button.
5、Click on the "Memory card“.
6、Choose a contact.
7、Click on the "Export" button in the upper right corner of the page.
OBSERVED:
8. The "Export to SD Card" overlay never closes.
EXPECTED:
9. POP up the Export error "There's not enough space on the memory card to export the contacts", and "Export to SD Card" overlay closed at the same time.
a) When export a contact to memory card, it shoud creates a vcard by the contact firstly.
b) Then get the left space size of memory card.
c) If left space size is less than the vcard's size, the function onStorage is finally called. The size of left space of memory card is the error parameter of onStorage(error, storage, finalName).
d) In onStorage():
if (error) {
var reason = error;
// numeric error means not enough space available
if (parseInt(error, 10) > 0) {
reason = 'noSpace';
}
finishCallback({
'reason': reason
}, count, error.message);
return;
}
e) However, if the size of left space is zero, the code above cannot be executed,the 'Export error' cannot be displayed.
The Attachment is my solution to the issue.
Please help me check whether it is reasonable.
Thank you!
Comment 3•10 years ago
|
||
Peipei, can you verify this issue on Flame v1.4?
blocking-b2g: --- → 1.4?
status-b2g-v1.4:
--- → affected
Flags: needinfo?(james.zhang) → needinfo?(pcheng)
Summary: [Contacts]No Error pop up when exporting contacts to SD card, while SD card is full. → [dolphin][Contacts]No Error pop up when exporting contacts to SD card, while SD card is full.
Updated•10 years ago
|
Flags: needinfo?(janjongboom)
Comment 4•10 years ago
|
||
Flame v1.4 has the same problem. When SD card is full, there is no error message pop up and "Export to SD Card" overlay never closes.
But when exporting to a full SIM, there is error msg "SIM card is full" pops up.
Flags: needinfo?(pcheng)
Updated•10 years ago
|
Attachment #8441341 -
Flags: review?(francisco)
Flags: needinfo?(janjongboom)
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8441341 [details] [diff] [review]
Exporterror_cannot_popup_while_SD_FULL.patch
Jan can you include a unit test for this fix?
Thanks!
Attachment #8441341 -
Flags: review?(francisco)
Assignee | ||
Comment 6•10 years ago
|
||
btw, forgot to comment that patch LGTM.
Thanks.
(In reply to Jan Jongboom [:janjongboom] (Telenor) from comment #7)
> ni the author of the patch.
I'm sorry!
I cannot understand what you mean!
Flags: needinfo?(kun.tang)
Updated•10 years ago
|
QA Contact: lmauritson
Comment 10•10 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #8)
> QA Wanted to check 1.3 Flame.
This DOES occur on the 1.3 flame base.
Device: Flame 1.3 (Base)
BuildID: 20140616171114
Gaia: e1b7152715072d27e0880cdc6b637f82fa42bf4e
Gecko: e181a36ebafaa24e5390db9f597313406edfc794
Version: 28.0 (1.3)
Firmware Version: v122
Updated•10 years ago
|
blocking-b2g: 1.4? → 1.4+
Updated•10 years ago
|
Attachment #8441341 -
Flags: review?(etienne)
Updated•10 years ago
|
status-b2g-v1.3:
--- → affected
status-b2g-v1.3T:
--- → ?
Reporter | ||
Comment 11•10 years ago
|
||
Sorry, I am a beginner of Firefox os.
So I am afraid I cannot write the unit test of the fix.
Please help me write it or tell me how to write it.
Thank you.
Flags: needinfo?(janjongboom)
Flags: needinfo?(francisco)
Comment 12•10 years ago
|
||
Sergi, can you help Kun with this?
Flags: needinfo?(janjongboom) → needinfo?(sergi.mansilla)
Assignee | ||
Comment 13•10 years ago
|
||
Kun, no worries, will give you a hand here!
Cheers, and thanks for the patch!
Flags: needinfo?(francisco)
Assignee | ||
Updated•10 years ago
|
Whiteboard: [sprd314046] → [sprd314046][p=2]
Target Milestone: --- → 2.0 S5 (4july)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → francisco
Comment 14•10 years ago
|
||
Comment on attachment 8441341 [details] [diff] [review]
Exporterror_cannot_popup_while_SD_FULL.patch
Review of attachment 8441341 [details] [diff] [review]:
-----------------------------------------------------------------
Redirecting to a contact peer.
Attachment #8441341 -
Flags: review?(etienne) → review?(francisco)
Assignee | ||
Comment 15•10 years ago
|
||
Attachment #8441341 -
Attachment is obsolete: true
Attachment #8441341 -
Flags: review?(francisco)
Attachment #8446533 -
Flags: review?(jmcf)
Comment 16•10 years ago
|
||
Comment on attachment 8446533 [details]
PR to 1.4 branch based on previous attachment with unit tests
thanks Francisco,
I left a tiny comment on GH about the consistency of the variable 'error'
Attachment #8446533 -
Flags: review?(jmcf) → review+
Assignee | ||
Comment 17•10 years ago
|
||
I cannot land this since I'm having a permanent red on branch 1.4 caused by Homescreen tests:
1) [system] system/HomescreenWindow homescreen window instance. homescreen is crashed Homescreen is crashed at foreground:rerender right away.:
TypeError: this.app.element is null
at atc_do_opening (http://system.gaiamobile.org:8080/js/app_transition_controller.js:156:7)
at atc_changeTransitionState (http://system.gaiamobile.org:8080/js/app_transition_controller.js:94:7)
at requireOpen (http://system.gaiamobile.org:8080/js/app_transition_controller.js:255:5)
at aw_open (http://system.gaiamobile.org:8080/js/app_window.js:1405:7)
at (anonymous) (http://system.gaiamobile.org:8080/js/homescreen_window.js:142:9)
at callTimer (http://system.gaiamobile.org:8080/common/vendor/sinon/sinon.js:3171:21)
at tick (http://system.gaiamobile.org:8080/common/vendor/sinon/sinon.js:3116:23)
at (anonymous) (http://system.gaiamobile.org:8080/test/unit/homescreen_window_test.js:118:9)
at wrapper (http://system.gaiamobile.org:8080/common/test/mocha_generators.js:62:19)
at run (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7)
at runTest (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4087:5)
at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4133:7)
at next (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4013:1)
at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4022:7)
at next (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3970:1)
at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3985:7)
at done (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3700:5)
at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3712:9)
at (anonymous) (http://system.gaiamobile.org:8080/common/test/mocha_generators.js:46:20)
at wrapper (http://system.gaiamobile.org:8080/common/test/mocha_generators.js:73:15)
at run (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7)
at next (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3979:5)
at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3990:5)
at (anonymous) (http://system.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4938:28)
Assignee | ||
Comment 18•10 years ago
|
||
Just push again adding an extra commit to disable the test that is affecting us.
Updated•10 years ago
|
Flags: needinfo?(jmitchell)
QA Contact: lmauritson
Assignee | ||
Comment 19•10 years ago
|
||
We opened bug 1033408 to check the status of 1.4 branch, we saw that is perma red and we cannot land, or we shouldn't land in that branch.
Reading that bug Tim suggest to do an uplift of bug 864178, that is still in process.
So marking this that as a blocker of this one, to see if that bug cleans v1.4 branch.
Depends on: 864178
Comment 20•10 years ago
|
||
Francisco, if the error on the branch looks completely unrelated to your patch, and you have the same error on the branch than on your PR, I think it's safe to land.
Let's be pragmatic :)
Assignee | ||
Comment 21•10 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #20)
> Francisco, if the error on the branch looks completely unrelated to your
> patch, and you have the same error on the branch than on your PR, I think
> it's safe to land.
>
> Let's be pragmatic :)
:)
To be honest, really would like to be pragmatic here, but we should be pretty strict on landing in branches that are not master, if I continue landing (don't discard doing that), how I will ask people to merge things with clean travis/gaia-try ... the branch will have a lot of code for unit tests that we are ignoring.
Just discovered that after updating with the bug 864178 landed, we continue having a permanent error in v1.4, in this case:
https://travis-ci.org/arcturus/gaia/builds/29050912
Is not just an intermitent, which I can leave with them, but same error repeated.
So we should be more strict in branches < 2.1 that we are with our master branch.
Comment 22•10 years ago
|
||
(In reply to Francisco Jordano [:arcturus] [:francisco] from comment #21)
> (In reply to Julien Wajsberg [:julienw] from comment #20)
> > Francisco, if the error on the branch looks completely unrelated to your
> > patch, and you have the same error on the branch than on your PR, I think
> > it's safe to land.
> >
> > Let's be pragmatic :)
>
> :)
>
> To be honest, really would like to be pragmatic here, but we should be
> pretty strict on landing in branches that are not master, if I continue
> landing (don't discard doing that), how I will ask people to merge things
> with clean travis/gaia-try ... the branch will have a lot of code for unit
> tests that we are ignoring.
>
> Just discovered that after updating with the bug 864178 landed, we continue
> having a permanent error in v1.4, in this case:
>
> https://travis-ci.org/arcturus/gaia/builds/29050912
Tim fixed this issue and I merged it with the other patches. You should try to rebase :)
>
> So we should be more strict in branches < 2.1 that we are with our master
> branch.
I agree with this. When we'll be on TBPL, sheriffs should take a lot more care than we do.
In the mean time, I think that as long as we check what the errors are (which is a lot more work than just checking green or red, yep), it's fine to merge.
Updated•10 years ago
|
Flags: needinfo?(ehung)
Assignee | ||
Comment 23•10 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #22)
> Tim fixed this issue and I merged it with the other patches. You should try
> to rebase :)
>
Just did and got the gree \o/ :)
Thanks a lot for the hard work here folks!
Assignee | ||
Comment 24•10 years ago
|
||
Landed in v1.4
https://github.com/arcturus/gaia/commit/3a177ac41a0230bbdc60de3b946c0cd022852ca5
Thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
status-b2g-v2.0:
--- → unaffected
status-b2g-v2.1:
--- → unaffected
Updated•10 years ago
|
QA Whiteboard: [QAnalyst-Triage?]
Flags: in-moztrap?(ychung)
Comment 25•10 years ago
|
||
Found Test Case: https://moztrap.mozilla.org/manage/case/9066/
STR needs to edited to verify this bug to the existing test case.
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Comment 26•10 years ago
|
||
New test case created in moztrap:
https://moztrap.mozilla.org/manage/case/14235/
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Flags: in-moztrap?(ychung)
Flags: in-moztrap+
Updated•10 years ago
|
Flags: needinfo?(sergi.mansilla)
You need to log in
before you can comment on or make changes to this bug.
Description
•