Closed
Bug 897309
Opened 12 years ago
Closed 12 years ago
[Buri][Messages]Can not send message to 10010
Categories
(Core :: DOM: Device Interfaces, defect, P1)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
DUPLICATE
of bug 885280
blocking-b2g | leo+ |
People
(Reporter: sync-1, Assigned: gerard-majax)
Details
Attachments
(1 file)
168.22 KB,
text/plain
|
Details |
AU_LINUX_GECKO_ICS_STRAWBERRY.01.01.00.019.164
Firefox os v1.1
Mozilla build ID:20130715070218
DEFECT DESCRIPTION:
1.when send message to 10010,it seem does not reaction(send message defeat).
2.wait a moment,10010 well reply a message,but can not see it at message list.
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:
It was caused by the error in MobileMessageDatabaseService.js.
line#845: let needles = allPossibleAddresses.slice(0);
let request = aParticipantStore.index("addresses").get(needles.pop());
Sometimes, needles.pop() returns null, thus leads to this bug.
Comment 2•12 years ago
|
||
(In reply to sync-1 from comment #0)
> REPRODUCING RATE:
What's the reproduction rate here? Comment 1 suggests this isn't 100% reproducible.
(In reply to Alex Keybl [:akeybl] from comment #2)
> (In reply to sync-1 from comment #0)
> > REPRODUCING RATE:
>
> What's the reproduction rate here? Comment 1 suggests this isn't 100%
> reproducible.
Some telephone numbers which is more than 3 bits will leads this problem, because allPossibleAddresses( for this numbers) is an Array like ['10010', null]. You can never request a indexDB to return any legal results with a null index request. It's unreasonable. And that is just the reason lead to this problem.
When you just use the number '10010' to send a message, it's a 100% reproduction.
Meanwhile, I think it's easy to deal with. We just need to add some judgement to ensure needles.pop() return a legal value, as follows:
var ads=needles.pop();
if(!ads)ads=needles.pop();
let request = aParticipantStore.index("addresses").get(ads);
Comment 4•12 years ago
|
||
Sounds like a blocker given comment 3. Anthony, can you help with reassignment here?
Assignee: nobody → anthony
blocking-b2g: leo? → leo+
Comment 5•12 years ago
|
||
Updating the product and component.
Component: Gaia::SMS → DOM: Device Interfaces
Product: Boot2Gecko → Core
Assignee | ||
Comment 7•12 years ago
|
||
I'm not sure I understand how to reproduce this. Would it work with any SIM and network ?
Assignee | ||
Comment 8•12 years ago
|
||
(In reply to 田旻 from comment #3)
> (In reply to Alex Keybl [:akeybl] from comment #2)
> > (In reply to sync-1 from comment #0)
> > > REPRODUCING RATE:
> >
> > What's the reproduction rate here? Comment 1 suggests this isn't 100%
> > reproducible.
>
> Some telephone numbers which is more than 3 bits will leads this problem,
> because allPossibleAddresses( for this numbers) is an Array like ['10010',
> null]. You can never request a indexDB to return any legal results with a
> null index request. It's unreasonable. And that is just the reason lead to
> this problem.
> When you just use the number '10010' to send a message, it's a 100%
> reproduction.
>
> Meanwhile, I think it's easy to deal with. We just need to add some
> judgement to ensure needles.pop() return a legal value, as follows:
>
> var ads=needles.pop();
> if(!ads)ads=needles.pop();
> let request = aParticipantStore.index("addresses").get(ads);
I don't understand precisely what you mean, especially « Some telephone numbers which is more than 3 bits ». Is it related to a specific SIM card ?
Can you provide adb logcat output with debug enabled in:
- dom/mobilemessage/src/ril/MobileMessageDatabaseService.js
- dom/phonenumberutils/PhoneNumberUtils.jsm
- dom/phonenumberutils/PhoneNumber.jsm
Flags: needinfo?(sync-1)
Assignee | ||
Comment 9•12 years ago
|
||
With Gecko 18 as of yesterday, logcat on my Inari with a Bouygues Telecom SIM shows:
I/Gecko ( 393): MobileMessageDatabaseService: findParticipantRecordByAddress: allPossibleAddresses = ["10010"]
I have no "null" element in the array.
Assignee | ||
Comment 10•12 years ago
|
||
Given the build id of comment #1, I'm starting to wonder whether it's not a regression from bug 885280.
Assignee | ||
Comment 11•12 years ago
|
||
Description in https://bugzilla.mozilla.org/show_bug.cgi?id=885280#c38 shows a very similar report than the current bug, I'm building a gecko-18 with the first version of bug 885280's patch, that matches the present bug report's buildid, to check that I can reproduce the issue and that this is effectively a regression that has been fixed.
Assignee | ||
Comment 12•12 years ago
|
||
I still cannot reproduce, but the description of bug 885280 really makes me wondering it has been fixed.
Can you retry with a newer version ? Thanks !
Comment 13•12 years ago
|
||
This problem is sim card related. May be different sim card return different value when system request to it. I have attach the file you need. Please check.
Flags: needinfo?(sync-1)
Assignee | ||
Comment 14•12 years ago
|
||
(In reply to 田旻 from comment #13)
> Created attachment 782383 [details]
> sms10010.log
>
> This problem is sim card related. May be different sim card return different
> value when system request to it. I have attach the file you need. Please
> check.
Can you retry with a newer version, please ? Because I clearly cannot reproduce this here :(
Flags: needinfo?(sync-1)
Comment 15•12 years ago
|
||
Actually, I have fixed this pr on our side. However, I will remove the patch and test it on the newest build (Mozilla build ID:20130722070207) again.
I will give you some feedback soon.
Flags: needinfo?(sync-1)
Comment 16•12 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #14)
> (In reply to 田旻 from comment #13)
> > Created attachment 782383 [details]
> > sms10010.log
> >
> > This problem is sim card related. May be different sim card return different
> > value when system request to it. I have attach the file you need. Please
> > check.
>
> Can you retry with a newer version, please ? Because I clearly cannot
> reproduce this here :(
Yes, after test on the new build (Mozilla build ID:2013072207020), it works well now.
Assignee | ||
Comment 17•12 years ago
|
||
Thanks !
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•