Closed Bug 839094 Opened 11 years ago Closed 11 years ago

PhoneNumberJS: handle countries sharing the same meta-data correctly

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18+ fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)

RESOLVED FIXED
B2G C4 (2jan on)
blocking-b2g -
Tracking Status
firefox19 --- wontfix
firefox20 --- wontfix
firefox21 --- fixed
b2g18 + fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- fixed

People

(Reporter: gwagner, Assigned: gwagner)

References

Details

Attachments

(1 file, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #818507 +++

I did an adb logcat, and I'm noticing this a lot:

[JavaScript Error: "formats is undefined" {file: "resource://gre/modules/PhoneNumber.jsm" line: 78}]


Lets start a new bug since this seems to be another bug and all the old comments don't apply.
Mike, what gecko version are you using, mc, b2g18, b2g18_v1*?
According to the More Information panel in "Device Information", I'm on 1.0.1.0-prerelease.

Does that tell you what I need? If not, where can I find this information?
Blocks: 834755
Seems like we have a problem in PhoneNumberJS with mcc 302. Investigating
Assignee: nobody → anygregor
Mcc in question is "mcc":302. I can't find it in our international country code table :(
(In reply to Gregor Wagner [:gwagner] from comment #4)
> Mcc in question is "mcc":302. I can't find it in our international country
> code table :(

that's unfortunate. It seems the library is not complete enough. At least SIM importation should not break when mcc is not available for some reason in phonenumber.js
Attached patch patch (obsolete) — Splinter Review
Stupid mistake :)
The first entry doesn't have the same country initials of course.
Attachment #711569 - Flags: review?(gal)
Summary: Importing SIM contacts stays stuck on spinner → PhoneNumberJS: handle countries sharing the same meta-data correctly
Attached patch patchSplinter Review
Attachment #711569 - Attachment is obsolete: true
Attachment #711569 - Flags: review?(gal)
Attachment #711627 - Flags: review?(gal)
Comment on attachment 711627 [details] [diff] [review]
patch

Nice catch. Dump bug.
Attachment #711627 - Flags: review?(gal) → review+
(In reply to Jose M. Cantera from comment #5)
> (In reply to Gregor Wagner [:gwagner] from comment #4)
> > Mcc in question is "mcc":302. I can't find it in our international country
> > code table :(
> 
> that's unfortunate. It seems the library is not complete enough. At least
> SIM importation should not break when mcc is not available for some reason
> in phonenumber.js

It was another mistake. I was looking in the wrong table.
This most likely fixes bug 834755 and should be tef+
blocking-b2g: --- → tef?
https://hg.mozilla.org/mozilla-central/rev/d60526b97a17
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
FWIW I think this should block :)
Yes this should definitely block!
Error messages without clarifying the user impact here do not make this a blocker - can you please nominate for uplift with an explanation of the risk/reward here and we'll look at approving this week if low risk.
blocking-b2g: tef? → -
tracking-b2g18: --- → +
The user impact for me is that I can't send SMSes without an internationalized phone #.  And we just drop back to an empty compose window with no feedback.  That was bug 834755 which was duped to this one.
Batch edit: Bugs still affected on b2g18 after 2/13 merge to v1.0.1 branch are affected on v1.0.1 branch.
I missed the comments here because of all the bugzilla spam we get recently. I thought this was uplifted last week and now we lost one week of testing :(

User impact is that people in random countries outside of the US can't send SMS or maybe even can't make phone calls to local numbers at all if we add this to the phoneNumber validation path as suggested by a few other blocking bugs.
blocking-b2g: - → tef?
This bug is tracking-b2g18+ please go ahead with an uplift nomination and we can review the risks in taking this (as mentioned in comment 18). We've got time still to land fixes to v1.0.1 for tef so this isn't a blocker based on not being a partner request at this time.
blocking-b2g: tef? → -
Comment on attachment 711627 [details] [diff] [review]
patch

Approved for uplift.
Attachment #711627 - Flags: approval-mozilla-b2g18+
https://hg.mozilla.org/releases/mozilla-b2g18/rev/48475dda7060

FYI, I folded the two csets into one for the uplift.

Also, it's not clear to me whether this was approved to land on b2g18_v1_0_1 at this time or not, so I didn't land it there. Please set checkin-needed if it needs uplift there as well and I'll get it.
Keywords: checkin-needed
Target Milestone: --- → B2G C4 (2jan on)
This does need to uplift to v1.0.1
Keywords: checkin-needed
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: