Closed
Bug 968550
Opened 11 years ago
Closed 11 years ago
[B2G][Settings][FDN] After adding a number to FDN and entering the wrong SIM2 pin the "The PIN2 code is incorrect." message does not appear.
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(blocking-b2g:1.3+, firefox28 wontfix, firefox29 wontfix, firefox30 fixed, b2g-v1.2 unaffected, b2g-v1.3 fixed, b2g-v1.3T fixed, b2g-v1.4 fixed)
People
(Reporter: lmauritson, Assigned: kaze)
References
()
Details
(Keywords: l12y, regression, Whiteboard: LocRun1.3, [systemsfe])
Attachments
(4 files, 2 obsolete files)
|
8.94 KB,
image/png
|
Details | |
|
44.49 KB,
text/plain
|
Details | |
|
1.56 KB,
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
|
1.63 KB,
patch
|
bajaj
:
approval-mozilla-b2g28+
|
Details | Diff | Splinter Review |
Description:
If the user goes to Settings -> Call Settings -> Fixed dialing numbers, and then adds a number to the list, a message asking for the PIN2 code will appear. If the user enters the wrong code there will be no notification, and when they have entered the wrong PIN2 several times even the correct code will no longer be accepted. The error string should read: "The PIN2 code is incorrect." or the equivalent for the current language, the same as it does in other areas where the PIN2 code is asked for.
This happens in all languages.
Repro Steps:
1) Update a Buri to BuildID: 20140205004002
2) Go to Settings -> Call Settings -> Fixed dialing numbers
3) Tap Authorized numbers, then add a new name and number and tap done.
4) Enter an incorrect PIN2 code.
>> There will be no notification that there was an error
5) Enter an incorrect PIN2 code 5 more times.
6) Try to enter the correct PIN2
>> Nothing happens
7) Back out of the screen using the back button
8) Tap on the switch to turn FDN on or off.
>> The user will be asked to enter the PUK2 code.
Actual:
No error message appears when entering an incorrect SIM2. After enough tries even the correct SIM2 will no longer work.
The user can become locked out of their device.
Expected:
An error message appears when the entered SIM2 is incorrect: "The PIN2 code is incorrect."
1.3 Environmental Variables:
Device: Buri 1.3 MOZ
BuildID: 20140205004002
Gaia: 3405c205cfb5625073b9db1e12ed5d173bdcc78c
Gecko: 2c7f237ba88b
Version: 28.0
Firmware Version: v1.2-device.cfg
Notes: Does NOT occur in 1.2
Repro frequency: 100%
See: http://youtu.be/Jww9_W08sLc and attached image
Comment 1•11 years ago
|
||
I need specific details of what is happening on 1.2 here. Can we get an explanation of the behavior seen on 1.2?
Keywords: qawanted
Comment 2•11 years ago
|
||
This feature is not currently functional in v1.2. This has been bugged separately.
https://bugzilla.mozilla.org/show_bug.cgi?id=972103
Keywords: qawanted
Comment 3•11 years ago
|
||
Quick description of events in 1.2:
When prompted to enter a PIN2, nothing happens if the user enters the PIN2 correctly. The device will not navigate from the 'Enter PIN2' page, and the number is not added to the authorized number list.
If the user enters an incorrect PIN2, then they will be returned to the list of authorized numbers, and the new number has not been added to the list. The user is not alerted that the PIN has been entered incorrectly.
Comment 4•11 years ago
|
||
What happens if you test this with an older Buri base image with latest 1.3 gaia/gecko on top?
Keywords: qawanted
Comment 5•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #4)
> What happens if you test this with an older Buri base image with latest 1.3
> gaia/gecko on top?
I'm going to flag bug 972103 with this request.
Fugu also has this bug.
Fugu
Gaia 26e8a950f3ac703310ee8efcb741ff2418e9d190
Gecko 0d2a915d0b66dba35ee9936bdeafef820a5c3357
BuildID 20140217152248
Version 28.0
Comment 7•11 years ago
|
||
Alright, so this isn't related to the base image. Based on the video here, this looks like busted UX with no user feedback. So nominating.
blocking-b2g: --- → 1.3?
Updated•11 years ago
|
Component: General → Gaia::Settings
Comment 8•11 years ago
|
||
Can we please get a regression window? Would like to explore backout options
Keywords: qawanted,
regressionwindow-wanted
Comment 9•11 years ago
|
||
We've already know we can block on this, but let's get that window.
Keywords: qawanted → regression
Updated•11 years ago
|
blocking-b2g: 1.3? → 1.3+
Comment 10•11 years ago
|
||
Last Working Environmental Variables:
Device: Buri
BuildID: 20131205040201
Gaia: 1dd0e5c644b4c677a4e8fa02e50d52136db489d9
Gecko: 725c36b5de1a
Version: 28.0a1
Base Image: V1.2-device.cfg
First Broken Environmental Variables:
Device: Buri
BuildID: 20131206040203
Gaia: 8fca2ca67e8a6022fe6ed8cb576e5d59dfb5237f
Gecko: 1401e4b394ad
Version: 28.0a1
Base Image: V1.2-device.cfg
Last Working Gaia/First Broken Gecko: Issue DOES Reproduce
Gaia: 1dd0e5c644b4c677a4e8fa02e50d52136db489d9
Gecko: 1401e4b394ad
First Broken Gaia/Last Working Gecko: Issue Does NOT Reproduce
Gaia: 8fca2ca67e8a6022fe6ed8cb576e5d59dfb5237f
Gecko: 725c36b5de1a
Keywords: regressionwindow-wanted
QA Contact: jzimbrick
Comment 11•11 years ago
|
||
So that concludes this is a gecko bug, but I need a logcat before I can diagnose what's failing here.
Keywords: qawanted
Comment 12•11 years ago
|
||
Comment 13•11 years ago
|
||
Logcat attached.
The "RIL Worker[0]: RIL Worker errorundefined" message is displayed in logcat when tapping the done button when attempting to enter the PIN2.
Updated•11 years ago
|
Component: Gaia::Settings → RIL
Comment 14•11 years ago
|
||
I will try to see if I can help on this one.
Assignee: nobody → lissyx+mozillians
Updated•11 years ago
|
Whiteboard: LocRun1.3 → LocRun1.3, [systemsfe]
Updated•11 years ago
|
Target Milestone: --- → 1.4 S2 (28feb)
Comment 15•11 years ago
|
||
Okay, so I think I'm reproducing it:
- Blocking SIM PIN2
- Taping on FDN, trying to add a number
- When validating the new FDN entry, I'm getting the SIM PIN2 interface.
This is wrong:
- my SIM PIN2 is already locked, it should be asking for PUK2
- when tapping Done on the top right corner, nothing happens.
Comment 16•11 years ago
|
||
Lionel, can you confirm my previous message correctly describes the issue you reported ?
Flags: needinfo?(lmauritson)
| Assignee | ||
Comment 17•11 years ago
|
||
Following our discussion on IRC: stealing, so that Alexandre can focus on his other 1.3+ blocker.
Assignee: lissyx+mozillians → kaze
Comment 18•11 years ago
|
||
After looking at the code, I think that we are just showing the SIM PIN UI without properly checking the state of the SIM card.
| Reporter | ||
Comment 19•11 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #15)
> Okay, so I think I'm reproducing it:
> - Blocking SIM PIN2
> - Taping on FDN, trying to add a number
> - When validating the new FDN entry, I'm getting the SIM PIN2 interface.
>
> This is wrong:
> - my SIM PIN2 is already locked, it should be asking for PUK2
> - when tapping Done on the top right corner, nothing happens.
This is correct, though the SIM PIN2 will be accepted if entered correctly. The SIM PIN2 must be entered incorrectly for the issue to occur.
Flags: needinfo?(lmauritson)
| Assignee | ||
Comment 20•11 years ago
|
||
There is a bug for sure, but I’m experiencing something else with my Inari + Orange SIM card:
• my SIM PIN2 has been refused or ignored a few times when trying to add a new FDN contact (not expected);
• now PIN2 is locked and I get the PUK2 message (expected);
• the PUK2 code does not seem to work (not expected… unless this PUK2 code is incorrect — checking with the telco).
Now trying with my Free Mobile SIM card and with an Android device to compare.
| Assignee | ||
Comment 21•11 years ago
|
||
Turns out my SIM card was really locked and my PUK2 code was incorrect. Once the PIN2 is locked, if the device is restarted it becomes impossible to unlock it because the SIM card is never detected again — this might be related to bug 976497.
So I confirm that there’s no error message when the PIN2 is wrong. This should be tested by the following function in simcard_dialog.js:
function updateFdnContact() {
var req = icc.updateContact('fdn', _fdnContactInfo, pinInput.value);
req.onsuccess = function onsuccess() {
_onsuccess(_fdnContactInfo);
close();
};
req.onerror = function onerror(e) {
var wrongPin2 = /IncorrectPassword/.test(req.error.name);
if (wrongPin2) { // TODO: count retries (not supported by the platform)
_action = initUI('get_pin2');
showMessage('fdnErrorMsg');
pinInput.value = '';
pinInput.focus();
} else {
_oncancel(_fdnContactInfo);
close();
throw new Error('Could not edit FDN contact on SIM card', e);
}
};
}
When the PIN2 code is correct, `req.onsuccess' is fired (as expected).
When the PIN2 code is incorrect, `req.onerror' is not fired (unexpected) — and neither is `req.onsuccess'.
This might be a Gecko regression. Investigating.
| Assignee | ||
Comment 22•11 years ago
|
||
OK, I missed the 'RIL Worker errorundefined' story. Please kill me. :-/
Comment 23•11 years ago
|
||
Yeah I also missed that it was already identified as a Gecko issue in comment 10 and 11. Kaze will continue to investigate and may come up with a fix.
Hsin-Yi: If there is no proposed patch when you read this, can anyone from RIL look at this? It's a 1.3+ blocker so prioritise accordingly.
Flags: needinfo?(htsai)
| Assignee | ||
Updated•11 years ago
|
Summary: [B2G][l10n][Settings][FDN] All languages: After adding a number to FDN and entering the wrong SIM2 pin the "The PIN2 code is incorrect." message does not appear. → [B2G][Settings][FDN] All languages: After adding a number to FDN and entering the wrong SIM2 pin the "The PIN2 code is incorrect." message does not appear.
| Assignee | ||
Updated•11 years ago
|
Summary: [B2G][Settings][FDN] All languages: After adding a number to FDN and entering the wrong SIM2 pin the "The PIN2 code is incorrect." message does not appear. → [B2G][Settings][FDN] After adding a number to FDN and entering the wrong SIM2 pin the "The PIN2 code is incorrect." message does not appear.
| Assignee | ||
Comment 24•11 years ago
|
||
I think this is an old regression caused by bug 944725. This fix works fine on my device.
Attachment #8382340 -
Flags: review?(htsai)
Flags: needinfo?(htsai)
| Assignee | ||
Comment 25•11 years ago
|
||
Here’s a better and simpler patch: in `processICCIOError', it makes no sense to default to a global `onerror' function if no error callback is passed. We already have a good debug message anyway.
I don’t really understand what the `onmessage()' and `onerror()' functions are expected to do (see last lines of ril_worker.js), but that could be addressed with a less urgent patch. :-)
Attachment #8382340 -
Attachment is obsolete: true
Attachment #8382340 -
Flags: review?(htsai)
Attachment #8382421 -
Flags: review?(htsai)
Updated•11 years ago
|
Attachment #8382421 -
Attachment is patch: true
Comment on attachment 8382421 [details] [diff] [review]
patch
Review of attachment 8382421 [details] [diff] [review]:
-----------------------------------------------------------------
my bad, sorry.
Attachment #8382421 -
Flags: review?(htsai) → review+
| Assignee | ||
Comment 27•11 years ago
|
||
Thanks Yoshi, can you land this patch please? I guess it has to land on central + b2g28?
Keywords: checkin-needed
convert patch to Unix format, and add r=me.
Attachment #8382421 -
Attachment is obsolete: true
Attachment #8382823 -
Flags: review+
Keywords: checkin-needed
Blocks: 977440
This is the patch for v1.3
Let me run try server first then request for approval_b2g28_v1.3?
try result for v1.3
https://tbpl.mozilla.org/?tree=Try&rev=58262da8916f
Comment on attachment 8382835 [details] [diff] [review]
(for b2g28_v1_3) Patch
NOTE: This flag is now for security issues only. Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): 944725
User impact if declined: User cannot get the error message when the PIN2 is incorrect.
Testing completed: https://tbpl.mozilla.org/?tree=Try&rev=58262da8916f
Risk to taking this patch (and alternatives if risky): low. It's just a typo in the first place.
String or UUID changes made by this patch: no
Attachment #8382835 -
Flags: approval-mozilla-b2g28?
Comment 33•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 34•11 years ago
|
||
Gaia 9422aca1931ba6c68784f9e80bb1b6a7fcfd92e3
Gecko https://hg.mozilla.org/mozilla-central/rev/58eca03214a6
BuildID 20140228040203
Version 30.0a1
ro.build.version.incremental=324
ro.build.date=Thu Dec 19 14:04:55 CST 2013
I see that I'm getting now the messages that SIM2 PIN is incorrect, and after the correct number of tries, SIM PIN is locked.
After backing out and going back into Call Settings => FDN I am prompted for the SIM Pin2 a second time. Entering that incorrectly I get a screen announcing (correctly, I believe) that THe SIM Card is locked. It also prompts for the PUK2 code and asks me to create a PIN2.
Comment 35•11 years ago
|
||
(In reply to John Hammink from comment #34)
> Gaia 9422aca1931ba6c68784f9e80bb1b6a7fcfd92e3
> Gecko https://hg.mozilla.org/mozilla-central/rev/58eca03214a6
> BuildID 20140228040203
> Version 30.0a1
> ro.build.version.incremental=324
> ro.build.date=Thu Dec 19 14:04:55 CST 2013
>
> I see that I'm getting now the messages that SIM2 PIN is incorrect, and
> after the correct number of tries, SIM PIN is locked.
>
> After backing out and going back into Call Settings => FDN I am prompted for
> the SIM Pin2 a second time. Entering that incorrectly I get a screen
> announcing (correctly, I believe) that THe SIM Card is locked. It also
> prompts for the PUK2 code and asks me to create a PIN2.
We need to verify that the correct PIN code can eventually work here before declaring this is verified.
Keywords: verifyme
Comment 36•11 years ago
|
||
Verified that the Sim PIN2 can be successfully entered to enable & disable FDN.
Sim PIN2 works on first try
Sim PIN2 works when 2 tries left
Sim PIN2 works on last try
This was done on v1.4
v1.4 Environmental Variables:
Device: Buri v1.4 MOZ
BuildID: 20140228040203
Gaia: 9422aca1931ba6c68784f9e80bb1b6a7fcfd92e3
Gecko: 58eca03214a6
Version: 30.0a1
Firmware Version: v1.2-device.cfg
Keywords: verifyme
Comment 37•11 years ago
|
||
(In reply to Peter Bylenga from comment #36)
> Verified that the Sim PIN2 can be successfully entered to enable & disable
> FDN.
>
> Sim PIN2 works on first try
> Sim PIN2 works when 2 tries left
> Sim PIN2 works on last try
>
> This was done on v1.4
>
> v1.4 Environmental Variables:
> Device: Buri v1.4 MOZ
> BuildID: 20140228040203
> Gaia: 9422aca1931ba6c68784f9e80bb1b6a7fcfd92e3
> Gecko: 58eca03214a6
> Version: 30.0a1
> Firmware Version: v1.2-device.cfg
Fixing the flags...
Status: RESOLVED → VERIFIED
Updated•11 years ago
|
Attachment #8382835 -
Flags: approval-mozilla-b2g28? → approval-mozilla-b2g28+
Comment 38•11 years ago
|
||
status-b2g-v1.4:
--- → fixed
status-firefox28:
--- → wontfix
status-firefox29:
--- → wontfix
status-firefox30:
--- → fixed
Updated•11 years ago
|
status-b2g-v1.3T:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•