Closed Bug 978014 Opened 10 years ago Closed 10 years ago

[FDN] Edit FDN contact does not ask for PUK2 password when PIN2 gets blocked

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect, P2)

ARM
Gonk (Firefox OS)

Tracking

(feature-b2g:2.1, b2g-v2.0 affected, b2g-v2.1 verified, b2g-v2.2 verified)

RESOLVED FIXED
2.1 S5 (26sep)
feature-b2g 2.1
Tracking Status
b2g-v2.0 --- affected
b2g-v2.1 --- verified
b2g-v2.2 --- verified

People

(Reporter: poojas, Assigned: sergi)

References

Details

(Whiteboard: [caf priority: p2][CR 725720][FT:COMMS])

Attachments

(4 files)

Prerequisite:
1. Should know PUK2 code before trying STR 

Steps to reproduce:
1. Go to Settings->Call Settings->Fixed dialing numbers->Authorized numbers
2. Edit any existing contact. It will ask for PIN2.
3. Enter wrong PIN2 three times so that PIN2 gets blocked

Expected Result:
It should ask for PUK2 code as PIN2 is already blocked.

Actual result:
It just returns back to fdn contact list page without editing contact.

This is because Gaia only handles "IncorrectPassword" (incorrect pin2) error case in updateFdnContact() function at [1].

And in rest all cases just print default error message 
"Error: Could not edit FDN contact on SIM card"

It doesn't handle "SimPuk2" (puk2 needed) error message

[1]https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/simcard_dialog.js line 239
Any update on this?
No longer depends on: CAF-v2.0-FC-metabug
Hi EJ,
This is more like a bug rather than feature.
Could you take a look at this?
Flags: needinfo?(ejchen)
Assign to EJ first, but very likely this can't be done before FL.
nominate 2.0? and target to fix before FC.
Assignee: nobody → ejchen
blocking-b2g: --- → 2.0?
Flags: needinfo?(ejchen)
Yes, it looks like a bug and I think we can postpone this after S3 to fix.

I would update if I got any updates. thanks !
Hi David, the FDN feature is developed by Comms team, could you find the appropriate person to solve this? Thanks.
Assignee: ejchen → nobody
blocking-b2g: 2.0? → backlog
Flags: needinfo?(dscravaglieri)
Hi Michal, do you mind taking a look? It's FDN feature bug related to gaia setting, thank you.
Flags: needinfo?(mbudzynski)
nominate 2.1? for triage.
CAF requests this to be in 2.1.
blocking-b2g: backlog → 2.1?
(In reply to Wesley Huang [:wesley_huang] from comment #7)
> nominate 2.1? for triage.
> CAF requests this to be in 2.1.

Per email and offline conversation on this, setting the feature-b2g flag as 2.1 as this is being targeted for 2.1 FL
feature-b2g: --- → 2.1
Hi, because of all the Contacts Haida work I have to finish this sprint, I don't think I'll find any time to work on FDN.
Flags: needinfo?(mbudzynski)
Blocks: CAF-v2.1-FC-metabug
No longer blocks: CAF-v2.0-FC-metabug
Assignee: nobody → fernando.campo
Is this target for this sprint? If so could we try to estimate the task, just to get used to estimations :)
Flags: needinfo?(dscravaglieri)
(In reply to Francisco Jordano [:arcturus] [:francisco] from comment #10)
> Is this target for this sprint? If so could we try to estimate the task,
> just to get used to estimations :)

Right now, it seems that Fernando has problems to reproduce/fix this bug due to his UK SIM card so it seems that he will not be able to work on it :(
(In reply to Maria Angeles Oteo (:oteo) from comment #11)
> (In reply to Francisco Jordano [:arcturus] [:francisco] from comment #10)
> > Is this target for this sprint? If so could we try to estimate the task,
> > just to get used to estimations :)
> 
> Right now, it seems that Fernando has problems to reproduce/fix this bug due
> to his UK SIM card so it seems that he will not be able to work on it :(
Yep, right now I don't have access to any simcard with PIN2 or PUK2, waiting till monday to try at LDN's office.
will get back to it as soon as I have access to SIMs to test with.
Assignee: fernando.campo → nobody
ni Bhavana and Wesley, could you provide more info regarding to Comment 8 and if this is 2.1 feature it needs Comms team to allocate resource to solve it. Thank you.
Flags: needinfo?(whuang)
Flags: needinfo?(bbajaj)
(In reply to howie [:howie] from comment #14)
> ni Bhavana and Wesley, could you provide more info regarding to Comment 8
> and if this is 2.1 feature it needs Comms team to allocate resource to solve
> it. Thank you.

That's correct, this was waived by CAF for 2.0 and and the expectation was to get this resolved in 2.1, hence comment #8.
Flags: needinfo?(bbajaj)
Hei Fernando,

do you have the SIMs you needed?
Flags: needinfo?(fernando.campo)
Sadly, no :( only have sims with PIN1 and PUK1, not the other ones.
Orange not helping much on the helpline. O2...well, you know O2.

Only one left is my spanish personal card, but I don't want to mess much with it, being away.
Flags: needinfo?(fernando.campo)
Whiteboard: [FT:COMMS]
Once bug 1020757 lands, it would be pretty easy to fix this bug by calling handleCardLockError from within the updatefdncontact at https://github.com/mozilla-b2g/gaia/blob/master/apps/settings/js/simcard_dialog.js#241. Wondering if you would be able to take this bug as well?
Flags: needinfo?(sergi.mansilla)
Wesley, can you please find an owner as soon as possible? Thanks!
Assignee: nobody → sergi.mansilla
blocking-b2g: 2.1? → backlog
Flags: needinfo?(whuang)
Target Milestone: --- → 2.1 S3 (29aug)
This sounds like a regression of this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=976470
Flags: needinfo?(sergi.mansilla)
(In reply to Sergi Mansilla [:sergi] (Telenor) from comment #20)
> This sounds like a regression of this bug:
> https://bugzilla.mozilla.org/show_bug.cgi?id=976470

And, do you mean this is more like a regression rather than feature?
Are you still working on this? We would need ETA estimation.
Flags: needinfo?(sergi.mansilla)
blocking-b2g: backlog → ---
Sergi will resume working on this. 
ETA and target milestone are set accordingly.
Flags: needinfo?(sergi.mansilla)
Whiteboard: [FT:COMMS] → [FT:COMMS][ETA:9/19]
Target Milestone: 2.1 S3 (29aug) → 2.1 S5 (26sep)
Whiteboard: [FT:COMMS][ETA:9/19] → [CR 725347][FT:COMMS][ETA:9/19]
Whiteboard: [CR 725347][FT:COMMS][ETA:9/19] → [caf priority: p2][CR 725347][FT:COMMS][ETA:9/19]
NI: sergi can you update where we are here on this, the ETA is set for topday (9/19) and I see nothing here.
Flags: needinfo?(whuang)
Flags: needinfo?(sergi.mansilla)
Hi,

I'm pretty sure this bug is related to https://bugzilla.mozilla.org/show_bug.cgi?id=1020757, and I have been waiting for feedback on that one for a while. The good news is that I got a SIM card today that might allow me to test all the scenarios of the bug and hopefully close these issues.

Sergi
Flags: needinfo?(sergi.mansilla)
See Also: → 1070941
Attached file Github PR
Attachment #8493042 - Flags: review?(francisco)
Comment on attachment 8493042 [details] [review]
Github PR

LGTM, Sergi do you think we can have any unit test?

If no, perhaps we could do a follow up.
Attachment #8493042 - Flags: review?(francisco) → review+
Hi Francisco, this code is likely to change in the near future because of https://bugzilla.mozilla.org/show_bug.cgi?id=1070961. Besides, the FDN/PIN2 dialog is likely to be refactored a bit with some coming issues. I'd like to open a follow-up bug that tests simcard_dialog.js instead of adding tests to this one. Sounds good?
Flags: needinfo?(francisco)
Definitely, let's land the fix, and we do the follow up.

Thanks!
Flags: needinfo?(francisco)
Merged at e1fd99454b6cd5da4f2c58f928fc04c6d03f478f
Flags: needinfo?(whuang)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [caf priority: p2][CR 725347][FT:COMMS][ETA:9/19] → [caf priority: p2][CR 725720][FT:COMMS][ETA:9/19]
Comment on attachment 8493042 [details] [review]
Github PR

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):
[User impact] if declined:
[Testing completed]:
[Risk to taking this patch] (and alternatives if risky):
[String changes made]:
Attachment #8493042 - Flags: approval-gaia-v2.1?
Attachment #8493042 - Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
v2.1: https://github.com/mozilla-b2g/gaia/commit/e3ca7e8a0fc77d0381e40fb616c805e0e9f923bc
Whiteboard: [caf priority: p2][CR 725720][FT:COMMS][ETA:9/19] → [caf priority: p2][CR 725720][FT:COMMS]
    This issue has been successfully verified on Flame 2.1&2.2.
    See attachment: verified_v2.1.MP4.
    Reproducing rate: 0/5
 
    But this bug also exist on Flame 2.0.
    See attch:v2.0_1226.mp4 and logcat_1226.txt.
    Reproducing rate: 5/5

Flame 2.0 build:
Gaia-Rev        f9d6e3d83c3922e9399a6c27f5ce4cdd27bdfd05
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/45112935086f
Build-ID        20141126000203
Version         32.0
Device-Name     flame
FW-Release      4.4.2
FW-Incremental  eng.cltbld.20141126.032754
FW-Date         Wed Nov 26 03:28:05 EST 2014
Bootloader      L1TC00011880

Flame 2.1 build:
Gaia-Rev        db2e84860f5a7cc334464618c6ea9e92ff82e9dd
Gecko-Rev       https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/211eae88f119
Build-ID        20141126001202
Version         34.0
Device-Name     flame
FW-Release      4.4.2
FW-Incremental  eng.cltbld.20141126.033519
FW-Date         Wed Nov 26 03:35:30 EST 2014
Bootloader      L1TC00011880

FLame 2.2 build:
Gaia-Rev        824a61cccec4c69be9a86ad5cb629a1f61fa142f
Gecko-Rev       https://hg.mozilla.org/mozilla-central/rev/acde07cb4e4d
Build-ID        20141125040209
Version         36.0a1
Device-Name     flame
FW-Release      4.4.2
FW-Incremental  eng.cltbld.20141125.113029
FW-Date         Tue Nov 25 11:30:43 EST 2014
Bootloader      L1TC00011880
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: