Closed Bug 886809 Opened 11 years ago Closed 11 years ago

Import SIM contacts fails if contact has no number

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: Bebe, Assigned: allstars.chh)

References

Details

(Keywords: regression, Whiteboard: [fixed-in-birch])

Attachments

(3 files)

Attached file Logcat for the test
STR:
1. Add a contact on a SIM card that has ONLY a name 
2. Insert the sim in a Unaghi with:
Gecko  http://hg.mozilla.org/mozilla-central/rev/76820c6dff7b
Gaia  427e0100826c677cee1341c4d83793321f16bb5f
BuildID 20130624031223
Version 24.0a1

3. Open the contacts app
4. Tap settings 
5. Tap import from Sim card
6. Wait


Expected:
6. A contact is imported with only the name 

Actual:
6. The Reading from SIM card.... message is present and the app is stuck there.
If we kill the app no contact is imported
Gregor, is this familiar to you, or should I dive into the gaia code?
If I try to import a contact that has only a phone number but no name the import works

I think it has something to do with Bug 847741  but I'm not sure
Is there anything in logcat? It's hard to tell if this is a contacts API problem or a RIL related problem.
To Gregor/Francisco/devs, what is the definition of a valid contact? Should it have both name and phonenumber or is just one of each enough?

My Android phone for example won't let me create a SIM contact without a number. but just a number and no name is acceptable too.

Is there validation in the Gaia import contact code?
I'm going to guess this is probably a regression, right? If so, I'm guessing this is a blocker by it's definition.
blocking-b2g: --- → leo?
Keywords: regression
In our automation it is working fine on v1-train and failing against master (build noted in comment #0) so yes it is a regression.
blocking-b2g: leo? → koi?
(In reply to Zac C (:zac) from comment #4)
> To Gregor/Francisco/devs, what is the definition of a valid contact? Should
> it have both name and phonenumber or is just one of each enough?

As far as the Contacts API is concerned, it doesn't have to have any properties. (i.e. new mozContact({}) works and creates a valid contact).
Component: Gaia::Contacts → DOM: Device Interfaces
Product: Boot2Gecko → Core
Version: unspecified → Trunk
RIL issue, taking this.
Assignee: nobody → allstars.chh
Comment on attachment 768179 [details] [diff] [review]
Part 1: Patch

Review of attachment 768179 [details] [diff] [review]:
-----------------------------------------------------------------

Great!
Attachment #768179 - Flags: review?(htsai) → review+
Attachment #768180 - Flags: review?(htsai) → review+
https://hg.mozilla.org/mozilla-central/rev/d6fc9a9d76cc
https://hg.mozilla.org/mozilla-central/rev/d8beb5ae6053
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Depends on: 889518
blocking-b2g: koi? → ---
Removing koi? since this is in gecko 25 which is < 26 which will be the basis for Firefox OS 1.2.
Blocks: 1157082
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: