Closed
Bug 871433
Opened 12 years ago
Closed 11 years ago
WebSMS: Sending the first message to a contact which number contains spaces, the reply will end-up in its own thread (message pane not updated)
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
People
(Reporter: whimboo, Assigned: vicamo)
References
Details
(Whiteboard: [fixed-in-birch] [LeoVB+])
Attachments
(2 files, 2 obsolete files)
(deleted),
patch
|
vicamo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•12 years ago
|
||
If you send a message to a contact imported from Google contacts, the sent message will not be associated with the appropriate contact and remain as number only in the message list. Once the other party answers a new thread gets opened, which then will be used for follow-up messages. But the first sent message is still disconnected from it.
blocking-b2g: --- → leo?
status-b2g18:
--- → affected
tracking-b2g18:
--- → ?
Summary: [SMS] S message to contacts imported from Google → [SMS] Sending a message to contacts imported from Google disconnects message thread
Reporter | ||
Comment 2•12 years ago
|
||
Tested with:
Gecko http://hg.mozilla.org/releases/mozilla-b2g18/rev/84f4c17f1605
Gaia 4e7d63a83508caa391c4db164c3f68422d9ca5b6
BuildID 20130509070205
Version 18.0
Comment 3•12 years ago
|
||
Would be a nice to have but since the google imported contacts do work (even though in a separate thread for first msg), this is not a blocker.
Reporter | ||
Comment 4•12 years ago
|
||
So I have tested it again and this is not related to contacts imported from Google. It happens with each contact you send the first message to and keep the message pane open.
Summary: [SMS] Sending a message to contacts imported from Google disconnects message thread → [SMS] Sending the first message to a contact, the reply will end-up in its own thread (message pane not updated)
Updated•12 years ago
|
Whiteboard: c= → u=fx-os-user c=scravag-sprint-may-20-31 p=1
Updated•12 years ago
|
Whiteboard: u=fx-os-user c=scravag-sprint-may-20-31 p=1 → u=fx-os-user c=scravag-sprint p=1
Comment 6•12 years ago
|
||
I can't reproduce anymore on v1-train. If you still can reproduce Henrik, could you give more detailed STRs? Does the contact exist in your contacts? Does it start with 0 or the country code?
Flags: needinfo?(hskupin)
Updated•12 years ago
|
Assignee: nobody → anthony
Reporter | ||
Comment 7•12 years ago
|
||
Yes, the contacts exists. I haven't checked with a not existent contact. Also all number are in the format +49 (XYZ) ZXY, means with the country code as prefix.
Flags: needinfo?(hskupin)
Comment 8•12 years ago
|
||
Henrik: Did you try with a recent v1-train? I really can't reproduce :(
Comment 9•12 years ago
|
||
Henrik, does the same behaviour occur with a manually entered contact?
Comment 10•12 years ago
|
||
The bug likely is about using spaces and brackets in a number, which we didn't support at one point. However I know there were some fixes about this recently.
Henrik, would you please try again your STR with a current v1.1 build ?
Flags: needinfo?(hskupin)
Reporter | ||
Comment 11•12 years ago
|
||
Ah, thank you Julien. Yes, I have brackets and spaces in the number like +49 (xyz) 12 34 56 789. So this is the reason for this problem. When I remove them everything works as expected and no new thread is getting created.
Flags: needinfo?(hskupin)
Summary: [SMS] Sending the first message to a contact, the reply will end-up in its own thread (message pane not updated) → [SMS] Sending the first message to a contact which number contains brackets and spaces, the reply will end-up in its own thread (message pane not updated)
Comment 12•12 years ago
|
||
Note to Rik who will investigate: very recently, we changed how we thread: we switched from using the number as a key to using thread id given by gecko.
So I don't know if this bug happens in both situations, but if it does, this will be for different reasons in different places.
Comment 13•12 years ago
|
||
Can you check this still happens now that Bug 876774 landed ? I suspect this was caused by the same problem.
Reporter | ||
Comment 14•12 years ago
|
||
No, I can't test this at the moment due to a new regression which has most likely be introduced by that landing. I filed this as bug 877718. Once that has been fixed I will retry here.
Comment 15•12 years ago
|
||
It still happens even after bug 876774 landed.
Comment 16•12 years ago
|
||
And it seems to only be a problem when a number contains spaces. Brackets seem to not cause this issue.
Summary: [SMS] Sending the first message to a contact which number contains brackets and spaces, the reply will end-up in its own thread (message pane not updated) → [SMS] Sending the first message to a contact which number contains spaces, the reply will end-up in its own thread (message pane not updated)
Comment 17•12 years ago
|
||
Pointer to Github pull-request
Updated•12 years ago
|
Attachment #757900 -
Flags: review?(gnarf37)
Comment 18•12 years ago
|
||
Comment on attachment 757900 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/10182
Discussed some changes to tests on IRC - I think this bug might already be fixed by the gecko change, but I really still want to land this SimplePhone stuff - it was a todo in the code, perhaps we should just flip this bug over to that?
Please ask for another review when the pull is updated / we figure out what happened :)
Attachment #757900 -
Flags: review?(gnarf37) → review-
Comment 19•12 years ago
|
||
I'm not sure we should include the SimplePhone stuff now. I think this was a possibility a few months ago, but now we've taken the path of making Gecko doing all the sanitization stuff.
I really believe this bug is is a gecko issue.
Updated•11 years ago
|
Component: Gaia::SMS → DOM: Device Interfaces
Product: Boot2Gecko → Core
Updated•11 years ago
|
Whiteboard: u=fx-os-user c=scravag-sprint p=1
Assignee | ||
Updated•11 years ago
|
Assignee: anthony → vyang
Assignee | ||
Updated•11 years ago
|
Summary: [SMS] Sending the first message to a contact which number contains spaces, the reply will end-up in its own thread (message pane not updated) → WebSMS: Sending the first message to a contact which number contains spaces, the reply will end-up in its own thread (message pane not updated)
Assignee | ||
Comment 20•11 years ago
|
||
Normalize target phone number before searcing for a participant record. Test cases included as well.
Attachment #757900 -
Attachment is obsolete: true
Attachment #770045 -
Flags: review?(gene.lian)
Comment 21•11 years ago
|
||
Comment on attachment 770045 [details] [diff] [review]
patch
Review of attachment 770045 [details] [diff] [review]:
-----------------------------------------------------------------
Nice patch! I cannot find any defect at all (although I hope to).
::: dom/mobilemessage/src/ril/MobileMessageDatabaseService.js
@@ +824,5 @@
> // Two types of input number to match here, international(+886987654321),
> // and local(0987654321) types. The "nationalNumber" parsed from
> // phonenumberutils will be "987654321" in this case.
>
> + // Bug 871433 - normalize address before searcing for participant record.
Why do you put the bug description here since you're solving this issue?
Btw, s/searcing/searching/
::: dom/mobilemessage/tests/marionette/test_phone_number_normalization.js
@@ +77,5 @@
> + return;
> + }
> +
> + let request = mozSms.delete(message.id);
> + request.onsuccess = deleteAll.bind(null, messages);
Cool! Good to learn another advanced coding skill again. :)
@@ +94,5 @@
> + let sentMessage = event.target.result;
> +
> + mozSms.onreceived = function onreceived(event) {
> + let receivedMessage = event.message;
> + is(sentMessage.threadId, receivedMessage.threadId, "message threadIds");
s/messages threadIds/message threadIds are supposed to be matched/
@@ +129,5 @@
> + return;
> + }
> +
> + SpecialPowers.removePermission("sms", document);
> + SpecialPowers.clearUserPref("dom.sms.enabled");
Not related to this bug. We have some lines in other files:
SpecialPowers.clearUserPref("dom.sms.enabled", false);
which is wrong (due to Bug 883798) but is working. Not sure if we could have chance to correct them in this patch as well? Note that b2g18 is also affected due to Bug 885652. :P
Attachment #770045 -
Flags: review?(gene.lian) → review+
Comment 22•11 years ago
|
||
(In reply to Gene Lian [:gene] from comment #21)
> which is wrong (due to Bug 883798) but is working. Not sure if we could have
> chance to correct them in this patch as well? Note that b2g18 is also
> affected due to Bug 885652. :P
^^^^^^^^^^ Sorry I mean Bug 887815.
Assignee | ||
Comment 23•11 years ago
|
||
(In reply to Gene Lian [:gene] from comment #21)
> Not related to this bug. We have some lines in other files:
>
> SpecialPowers.clearUserPref("dom.sms.enabled", false);
>
> which is wrong (due to Bug 883798) but is working. Not sure if we could have
> chance to correct them in this patch as well? Note that b2g18 is also
> affected due to Bug 885652. :P
I can fix all of them in this patch, but it's not going to be uplifted to b2g18 :(
Assignee | ||
Comment 24•11 years ago
|
||
Attachment #770045 -
Attachment is obsolete: true
Attachment #770096 -
Flags: review+
Assignee | ||
Comment 25•11 years ago
|
||
Whiteboard: [fixed-in-birch]
Comment 26•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Assignee | ||
Comment 27•11 years ago
|
||
Leo+ bug 885280 needs changes from this bug.
Blocks: 885280
blocking-b2g: - → leo?
Assignee | ||
Comment 29•11 years ago
|
||
Comment 30•11 years ago
|
||
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → wontfix
status-b2g-v1.1hd:
--- → affected
status-firefox23:
--- → wontfix
status-firefox24:
--- → wontfix
status-firefox25:
--- → fixed
Comment 31•11 years ago
|
||
Updated•11 years ago
|
Whiteboard: [fixed-in-birch] → [fixed-in-birch] [LeoVB+]
Reporter | ||
Comment 32•11 years ago
|
||
Works great on Unagi with the latest 1.1 nightly.
You need to log in
before you can comment on or make changes to this bug.
Description
•