Closed Bug 856991 Opened 11 years ago Closed 11 years ago

[Buri][SMS]If there is 10010 exist in the phone number of 11 digits from one r contact, the Send SMS will abnormal

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.1 fixed)

RESOLVED FIXED
blocking-b2g tef+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.1 --- fixed

People

(Reporter: sync-1, Assigned: janjongboom)

References

Details

(Whiteboard: QARegressExclude)

Attachments

(3 files)

AU_LINUX_GECKO_ICS_STRAWBERRY_V1.01.00.01.19.055
 Firefox os  v1.0.1
 Mozilla build ID: 20130327153857
 
 +++ This bug was initially created as a clone of Bug #427629 +++
 
 Created an attachment (id=371953)
 issue picture
 
 [WuYing][6915]
 DEFECT DESCRIPTION:
   if there is 10010 exist in the phone number,then you sent a SMS to 10010, the receiver will show the contact which include 10010.
 
 REPRODUCING PROCEDURES:
 For Example
 1.Save Phone number 13482110010 to Contact list
 2.Enter the SMS
 3.Send SMS to 10010
 4.But this SMS will show 13482110010 Contact.----KO
 
 
 
 EXPECTED BEHAVIOUR:
 Input 10010 number in recipient,the SMS should send to 10010
 
 
 
 ASSOCIATE SPECIFICATION:
 
 TEST PLAN REFERENCE:
 
 TOOLS AND PLATFORMS USED:
 V114
 USER IMPACT:
 Medium
 REPRODUCING RATE:
 5/5
 For FT PR, Please list reference mobile's behavior:
 
 ++++++++++ end of initial bug #427629 description ++++++++++
 
 
 
 CONTACT INFO (Name,Phone number):
 
  DEFECT DESCRIPTION:
 
  REPRODUCING PROCEDURES:
 
  EXPECTED BEHAVIOUR:
 
  ASSOCIATE SPECIFICATION:
 
  TEST PLAN REFERENCE:
 
  TOOLS AND PLATFORMS USED:
 
  USER IMPACT:
 
  REPRODUCING RATE:
 
  For FT PR, Please list reference mobile's behavior:
Attached image issue picture
Hello Borja Salguero,

It seems that the match rules has some mistake. The short number matchs the contact which contains the number.
Hi. It's true because currently we are working with 'contains' following Gecko suggestions. We could ask to Gecko developer in order to know how to deal with it.
Flags: needinfo?(anygregor)
Yeah multiple people reported such problems. I am working on a solution now and we should fix it next week.
Flags: needinfo?(anygregor)
blocking-b2g: --- → tef?
We're worried fixing this will represent a lot of risky work. Can QA confirm that:

1) The text does end up getting sent to 10010
2) Subsequent texts in that thread are sent to 10010
3) The user is still able to send a text messages to 13482110010

If these user scenarios aren't impacted, this is not a blocker. Even still, this may not be a blocker (given risk involved and small user impact).
Keywords: qawanted
I'm a little bit at a loss how we'd test this on our end. 10010 appears to be very specific to China's Unicom system. 

Is this something someone with a compatible phone system can help with?
Incidentally, as a blind guess the problem may be that we're attempting to match numbers w/o area code being necessary. 

On iOS I believe if I call 555-1212, it'll automatically realize I mean 408-555-1212 and display the matching contact appropriately. We may just not have the regex formed in a way that it's specific to area/country codes, particularly if it attempts to be non-specific to locale.
blocking-b2g: tef? → tef+
Assignee: nobody → janjongboom
(In reply to Geo Mealer [:geo] from comment #7)
> Incidentally, as a blind guess the problem may be that we're attempting to
> match numbers w/o area code being necessary. 
> 
> On iOS I believe if I call 555-1212, it'll automatically realize I mean
> 408-555-1212 and display the matching contact appropriately. We may just not
> have the regex formed in a way that it's specific to area/country codes,
> particularly if it attempts to be non-specific to locale.

Per Triage, this isn't only affecting 5 digit numbers.   This bug is really about entering in any amount of short numbers in the app, and sending the SMS would end up sending to another number that matched the numbers from your contacts (ie. send SMS to short number "609", but it ends up going to a saved contact with "888-333-9609".    

Removing qawanted, since i saw it reproduced by a few people in the triage room.  (both dcoloma and Emily)
Keywords: qawanted
Attached patch PatchSplinter Review
This patch introduces findByEqualString that does an equals op against mozContacts and replaces all calls (except the one in the find contact screen) by this call. I've added test cases.
Attachment #738431 - Flags: review?(francisco.jordano)
Whiteboard: [status: waiting for review]
Comment on attachment 738431 [details] [diff] [review]
Patch

Did a quick check, nothing weird on the code, but prefer Fernando do rplus after rechecking.

Thanks Jan!!
Attachment #738431 - Flags: review?(francisco.jordano) → review?(fernando.campo)
Copied from the PR: 

This doesn't match any existing platform's behaviour; both iOS Contacts and Android People lookup phone numbers from the beginning.
Strike the previous comment, I misunderstood which Contacts lookup behaviour was being modified.
Created bug 863198 to keep track of refactoring the Contacts module in SMS.
Ping fernando.campo for re-r?.
Comment on attachment 738431 [details] [diff] [review]
Patch

Thanks for the quick fix and the followup, patch looks nice, tested and works fine.
Attachment #738431 - Flags: review?(fernando.campo) → review+
Landed in https://github.com/mozilla-b2g/gaia/commit/51931fee784c0a9e81fa5afc525007e8ad9f2340
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [status: waiting for review]
Jan, I'm quite sure this won't apply cleanly on v1.0.1, would you please prepare a specific PR for 1.0.1 ?
Flags: needinfo?(janjongboom)
Jan, we need you here, please ;)
Oops, didn't read this. So you need a PR against the v1.0.1 branch on Gaia?
Flags: needinfo?(janjongboom) → needinfo?(felash)
Attached patch Patch for 1.0.1Splinter Review
Here's a patch that merges against v1.0.1
Attachment #741772 - Flags: review?(fernando.campo)
Comment on attachment 741772 [details] [diff] [review]
Patch for 1.0.1

stealing
Attachment #741772 - Flags: review?(fernando.campo) → review?(felash)
Flags: needinfo?(felash)
Comment on attachment 741772 [details] [diff] [review]
Patch for 1.0.1

r=me

I'm sure we'll run into problems with internationalized/regional numbers too but well, let's fix this.
Attachment #741772 - Flags: review?(felash) → review+
James, could you please uplift this ? I'm afraid to run into conflicts if we delay uplifting this too much.
Flags: needinfo?(jlal)
v1-train: b1e5cee77ff87bde14cfa6a4b04f12cb68078456
v1.0.1: 68508bf82925aa389eb4d45d5c9ed5f76b78d81d
Flags: needinfo?(jlal)
This issue doesn't reproduce on Inari and Leo devices

Environmental  Variables:
Unagi Build ID: 20130430070201
Kernel Date: Feb 21
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/010498e599a7
Gaia: de0f1fc6c58616b8a33fca482f1f8684d4e74e9e

Environmental  Variables:
Unagi Build ID: 20130426070204
Kernel Date: Mar 15
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/6c2493de1441
Gaia: c9046a7acef33328977840176ff5574720d2c74c
Unable to test on the Buri Device. Marking as QARegressExclude.
Whiteboard: QARegressExclude
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: