Closed
Bug 1063959
Opened 10 years ago
Closed 10 years ago
Can't open contact settings if there is no mapped internal SD Card
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Firefox OS Graveyard
Gaia::Contacts
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1058449
People
(Reporter: gael.goinvic, Assigned: gael.goinvic, Mentored)
Details
Attachments
(1 file)
999 bytes,
patch
|
sergi
:
review-
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
Build ID: 20140722064054
Steps to reproduce:
I'm using a ZTE Open C mapped to a KIS3 partitions layout. ( Using this mod http://www.modaco.com/topic/373261-devrom208-firefox-os-b2g-for-zte-open-c-kis-3/ )
Here are the layout differences :
Kis 3. ~900mb /system (p12), ~1.9gb /data (p13), no SD card partition
Open C. ~800mb /system (p12), ~1gb /data (p13), ~900mb SD card partition (p24)
In this case, pressing the "Settings" button of the Contacts app doesn't open the settings.
Actual results:
When opening the contacts application with the Kis 3 partitions, the webapp throws an error :
"TypeError: SdCard.deviceStorage is null" {file: "app://communications.gaiamobile.org/shared/js/contacts/import/utilities/sdcard.js" line: 69}]
Expected results:
The contacts settings should be shown with throwing an error.
Assignee | ||
Updated•10 years ago
|
Mentor: francisco
Flags: a11y-review?
Assignee | ||
Comment 2•10 years ago
|
||
I just noticed there is a typo in my Expected Results.
"The contacts settings should be shown with throwing an error." should be "The contacts settings should be shown without throwing an error."
I'll try to find people who could confirm this bug.
Comment 3•10 years ago
|
||
Hi Gaël! What is the a11y review request for?
Tony, can you have someone in QA with this device take a look to confirm?
Assignee: nobody → gael.goinvic
Flags: needinfo?(tchung)
Flags: needinfo?(gael.goinvic)
Assignee | ||
Comment 4•10 years ago
|
||
Hi
The a11y-review was for someone to check after my patch.
Maybe this tag is not intended to be used like this ?
The bug is pretty obvious just by looking at the code. It only happens if there is not mapped internal SD Card, which is not the standard case for Zte Open C...
Flags: needinfo?(gael.goinvic)
Comment 5•10 years ago
|
||
Hey Gaël, the a11y review is for accessibility review. What you want is code review.
Francisco, who is the right person for code review here?
Gaël, something you should investigate now is how to write a unit test or integration test for this... before Francisco or another reviewer asks you for it ;)
Some docs:
https://developer.mozilla.org/en-US/Firefox_OS/Platform/Automated_testing/Gaia_unit_tests
Flags: a11y-review? → needinfo?(francisco)
Assignee | ||
Updated•10 years ago
|
Flags: a11y-review-
Assignee | ||
Updated•10 years ago
|
Flags: a11y-review-
Assignee | ||
Comment 6•10 years ago
|
||
Ok got it.
I'll work on a unit-test asap.
Comment 7•10 years ago
|
||
Hi folks,
I would suggest Sergi Mansilla as reviewer for sdcard work.
Flags: needinfo?(francisco)
Comment 8•10 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #3)
> Hi Gaël! What is the a11y review request for?
>
> Tony, can you have someone in QA with this device take a look to confirm?
sorry for the late response. is QA still needed for help here?
Flags: needinfo?(tchung) → needinfo?(dietrich)
Comment 9•10 years ago
|
||
Comment on attachment 8485432 [details] [diff] [review]
The patch to fix the error shared/js/contacts/import/utilities/sdcard.js
Hei Sergi,
can you take a look to this code?
Attachment #8485432 -
Flags: review?(sergi.mansilla)
Comment 10•10 years ago
|
||
Oh, just realised this bug was not confirmed with QA, Johan will you have some time to check this?
Flags: needinfo?(jlorenzo)
Comment 11•10 years ago
|
||
Comment on attachment 8485432 [details] [diff] [review]
The patch to fix the error shared/js/contacts/import/utilities/sdcard.js
Hi Gaël,
It looks like the functionality you are introducing is already there on latest master (https://github.com/mozilla-b2g/gaia/blob/master/shared/js/contacts/import/utilities/sdcard.js#L70). It was fixed in the following PR: https://github.com/mozilla-b2g/gaia/commit/e520aae2d2817b694eb4da1541aa8ddd4d826e29.
What codebase version are you patching against?
(Looks like this could be a duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1058449)
Attachment #8485432 -
Flags: review?(sergi.mansilla) → review-
Assignee | ||
Comment 12•10 years ago
|
||
Yes it looks like it's fixed in the latest codebase. I think that it was fixed at the same time the bug #1058449 was fixed.
I was patching against an old version (delivered in september there : http://www.modaco.com/topic/373261-devrom511-caf-firefox-os-b2g-for-zte-open-c-kis-3/)
It looks like i need to do an upgrade of the current version then :)
This ticket can be closed !
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Comment 13•10 years ago
|
||
Clearing the NI per comment 12.
Flags: needinfo?(jlorenzo)
Flags: needinfo?(dietrich)
You need to log in
before you can comment on or make changes to this bug.
Description
•