Closed
Bug 1054911
Opened 10 years ago
Closed 10 years ago
[dolphin] When we set message outgoing to always ask, it is chaos about which sim should be used to resend failed message.
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 unaffected, b2g-v2.1 unaffected)
Tracking | Status | |
---|---|---|
b2g-v1.4 | --- | fixed |
b2g-v2.0 | --- | unaffected |
b2g-v2.1 | --- | unaffected |
People
(Reporter: wei.gao, Assigned: wei.gao)
Details
Attachments
(2 files)
OS version
---------------------------------------------
FireFoxOS v1.4
Reproduce steps:
---------------------------------------------
1. set message outgoing to always ask
2. send a message with sim2 in no signal envirenment, then it will be sent failed.
3. click this message, it will be resent with sim1.
Expected result:
---------------------------------------------
It should be resent with sim2 which is last used sim.
Probability:
---------------------------------------------
Always Recurrence
Assignee | ||
Comment 1•10 years ago
|
||
Dear Steve
I think we should preserve the sim card index last used in MozSmsMessage object.
Could you help to have a look of it?
Thanks a great.
status-b2g-v1.4:
--- → affected
Flags: needinfo?(schung)
Comment 2•10 years ago
|
||
Please see bug 983315 and https://github.com/mozilla-b2g/gaia/commit/760de18383f946a6cd65cb19429bf3a3b1fd636d
You can fetch message iccid to know which sim slot to send the message and use it as the parameter to send the message again.
Flags: needinfo?(schung)
Assignee | ||
Comment 3•10 years ago
|
||
Dear Steve
Thanks for your advice. That's perfectly right.
So could the patch in bug 983315 be landed on v1.4?
I think v1.4 needs it.
Thanks.
Flags: needinfo?(schung)
Comment 4•10 years ago
|
||
I answered in bug 983315.
If all you want is the resend behavior, it should be even safer to do a smaller patch from the patch in bug 983315.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(schung)
Resolution: --- → DUPLICATE
Assignee | ||
Comment 5•10 years ago
|
||
Dear Julien
Can this small patch be granted to landed?
I really hope it can be landed on 1.4 thread.
Thanks a great.
Flags: needinfo?(felash)
Comment 6•10 years ago
|
||
From what I see it should work, but I really don't have the time to test this currently.
If you test if from your side (both in Dual and Single SIM conditions) then I think it's good.
Please also try to keep passing unit tests.
Flags: needinfo?(felash)
Updated•10 years ago
|
Attachment #8474935 -
Flags: feedback+
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Julien Wajsberg [:julienw] (PTO 08/20 -> 09/15; contact schung instead) from comment #6)
> From what I see it should work, but I really don't have the time to test
> this currently.
>
> If you test if from your side (both in Dual and Single SIM conditions) then
> I think it's good.
> Please also try to keep passing unit tests.
Yes, I have tested it locally(both in Dual and Single SIM conditions) and it can work normal.
Thanks.
Assignee | ||
Comment 8•10 years ago
|
||
[Blocking Requested - why for this release]:
blocking-b2g: --- → 1.4?
Comment 9•10 years ago
|
||
It would need a real review if it needs to land on our branch. In that case we'd need to update the unit tests and a review from schung@ (because I'm leaving for holidays soon).
Assignee | ||
Comment 10•10 years ago
|
||
Comment on attachment 8474935 [details] [diff] [review]
use_the_last_used_sim_to_resend_sms.patch
Dear Steve
Could you help to review this small patch, as I think this issue should be resolved on 1.4.
Thanks a great.
Attachment #8474935 -
Flags: review?(schung)
Comment 11•10 years ago
|
||
Comment on attachment 8474935 [details] [diff] [review]
use_the_last_used_sim_to_resend_sms.patch
Hi Wei, the solution is right but we will need unit test if you want to merge in 1.4 branch. Please ref unit tests in master[1] and ask for review again, thanks!
[1] https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/test/unit/message_manager_test.js#L493
Attachment #8474935 -
Flags: review?(schung)
Comment 12•10 years ago
|
||
Reopening this since it provides a different fix to bug 983315.
Julien, Steve,
If I understand this correctly, this bug doesn't cover bug 983315 entirely but only part of it, right?
Assignee: nobody → wei.gao
Status: RESOLVED → REOPENED
Flags: needinfo?(schung)
Flags: needinfo?(felash)
Resolution: DUPLICATE → ---
Comment 13•10 years ago
|
||
(In reply to Wayne Chang [:wchang] from comment #12)
> Reopening this since it provides a different fix to bug 983315.
>
> Julien, Steve,
>
> If I understand this correctly, this bug doesn't cover bug 983315 entirely
> but only part of it, right?
ya, this patch only focus on resend by correct sim
Flags: needinfo?(schung)
Updated•10 years ago
|
Flags: needinfo?(felash)
Comment 14•10 years ago
|
||
Setting this to 1.4+ since the described scenario in comment 0 may introduce bill shock or undesired user experiences.
Wei, Please make sure the patch follows through the review and landing criteria before it gets landed.
Thanks
blocking-b2g: 1.4? → 1.4+
Flags: needinfo?(wei.gao)
Assignee | ||
Comment 15•10 years ago
|
||
Dear Steve
This is a PR for 1.4, could you help to review it?
Thanks a great.
Attachment #8477250 -
Flags: review?(schung)
Flags: needinfo?(wei.gao)
Comment 16•10 years ago
|
||
Comment on attachment 8477250 [details]
[v1.4] pull request
r=me, thanks for the fixing on v1.4 branch
Attachment #8477250 -
Flags: review?(schung) → review+
Comment 17•10 years ago
|
||
in v1.4: 1b46b46159604c8833f8fea173b87eaf350253f9
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Comment 18•10 years ago
|
||
Are v2.0/master unaffected?
Updated•10 years ago
|
Flags: needinfo?(wei.gao)
Assignee | ||
Comment 19•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #18)
> Are v2.0/master unaffected?
No, it is a problem for 1.4 only.
v2.0/master had been resolved in bug 983315 earlier.
Thanks.
You need to log in
before you can comment on or make changes to this bug.
Description
•