Closed Bug 961742 Opened 10 years ago Closed 10 years ago

[Cost Control] Check balance with Brazil VIVO prepaid SIM card is not detected if it only has a decimal digit

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3+, b2g-v1.3 fixed, b2g-v1.3T fixed, b2g-v1.4 fixed)

VERIFIED FIXED
1.3 C3/1.4 S3(31jan)
blocking-b2g 1.3+
Tracking Status
b2g-v1.3 --- fixed
b2g-v1.3T --- fixed
b2g-v1.4 --- fixed

People

(Reporter: sonmarce, Assigned: mai)

Details

Attachments

(2 files)

Steps to reproduce:
1. Take a Brazil VIVO prepaid SIM card
2. Have a balance with a single decimal digit (e.g. R$0,30, R$7,50, etc)
3. Check balance from Cost Control application

Expected result: new balance is correctly displayed in the application

Actual result: balance is not updated in the application

It is specially bad for the case of no balance (R$0,0), so user will not be aware that he/she has to top-up to continue using the device
This bug was detected on September 2013, and it is owed to VIVO platform return a number with a single decimal digit and device is expecting to decimal digits. It was not fixed before because it was too late for version 1.1, and it was going to be fixed in VIVO platform.

Now we have just checked that the bug is still there, and it is very easy to fix for landing it in version 1.3 (just a simple change in a regular expression in the parser).
blocking-b2g: --- → 1.3?
Attached file patch v1.0
Tested successfully on my terminal.
Attachment #8362901 - Flags: review?(salva)
Assignee: nobody → mri
blocking-b2g: 1.3? → 1.3+
Bad behavior per STR hence 1.3+
Target Milestone: --- → 1.3 C3/1.4 S3(31jan)
Comment on attachment 8362901 [details] [review]
patch v1.0

This is a VIVO platform problem. I have a mail confirming:

> The response for Balance Query (operation 0102) is a fixed
> precision number with a integer part and a two-digit factionary
> part separated by a dot and it’s expressed in R$.

Anyway, the fix for the regular expression is OK.

Thank you :mai.
Attachment #8362901 - Flags: review?(salva) → review+
75ea7d07cdb590722634016410e12819faf82e5a
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Uplifted 75ea7d07cdb590722634016410e12819faf82e5a to:
v1.3: 10258933767e3435188792462b7cb5e0c840428c
To be tested is necesary prepaid sim card. QA is waiting Marce provides this SIM card
VIVIVO service is temporarily unavailable, while platform isn't working not it verified this bug.VO service is temporarily unavailable, while it isn0't working not it posible VERIFIED bug.
Tested (02/10/2014) and working
1.3
Gecko: b71e4b8
Gaia: bf79fe1

Aplication resolved this bug, also VIVO platform has resolved this bug  and has added 0.00 (see image attached), for this reason this bug isn't going to happen and this bug is VERIFED FIXED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: