Closed
Bug 991666
Opened 11 years ago
Closed 11 years ago
[OMA CP] The notification of an accepted OMA CP message does not dissapear once it has been processed
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(blocking-b2g:1.3+, b2g-v1.3 verified, b2g-v1.3T fixed, b2g-v1.4 verified, b2g-v2.0 verified)
People
(Reporter: isabelrios, Assigned: gsvelto)
References
Details
(Keywords: regression, verifyme, Whiteboard: [cert][systemsfe])
Attachments
(5 files, 1 obsolete file)
2.72 MB,
video/3gpp
|
Details | |
4.39 KB,
text/plain
|
Details | |
46 bytes,
text/x-github-pull-request
|
Details | Review | |
4.65 KB,
patch
|
alive
:
review+
bajaj
:
approval-gaia-v1.3+
bajaj
:
approval-gaia-v1.4+
|
Details | Diff | Splinter Review |
110.36 KB,
image/png
|
Details |
v1.3 04/03 buri build:
Gecko-1bbed3c
Gaia-c5cd3a1
STEPS
Receive an OMA CP message
Open it tapping on the notification layer before it dissapears
Accept the message and store the APN
Go back to homescreen
Pull down the utility tray as there is still a notification about a configuration message
Tap on that notification
EXPECTED
Once the configuration message has been open and processed, the notification of its arrival should dissapear
ACTUAL
The notification of the configuration message does not dissapear once the message has been processed. It is necesary to go to the utility tray and tap on it.
A message saying that the message has expired is shown.
Please see video file attached.
Comment 1•11 years ago
|
||
This is reported as blocker during IOT process.
We do think this feature was working fine in 1.3 when we tested it in Nov and Jan.
blocking-b2g: --- → 1.3?
Updated•11 years ago
|
blocking-b2g: 1.3? → 1.3+
Updated•11 years ago
|
Component: Gaia::Settings → Gaia::Wappush
Comment 2•11 years ago
|
||
David - Can you get someone assigned to look into this issue?
Flags: needinfo?(dscravaglieri)
Updated•11 years ago
|
Whiteboard: cert
Updated•11 years ago
|
Whiteboard: cert → [cert]
Comment 3•11 years ago
|
||
Gabriele, could you take a look please ?
Flags: needinfo?(dscravaglieri) → needinfo?(gsvelto)
Assignee | ||
Comment 4•11 years ago
|
||
Yes, taking this. Isable since I don't have access to NowSMS or a similar program the only way I have to test this is within the emulator. For that I need either the raw SMS PDU of the message or its dumped out contents.
If you can't retrieve the raw SMS PDU one way to give me the contents of the message is the following:
- Make sure you're using an engineering build on your buri
- Send the message to your device
- Look into the logcat, you'll find something like this:
I/GeckoDump( 241): ###################### Wap Push Received ######################
I/GeckoDump( 241): Sender: +31641600986
I/GeckoDump( 241): Content Type: text/vnd.wap.si
I/GeckoDump( 241): Content: <si><indication href="http://www.oreilly.com/">Check this website</indication></si>
I/GeckoDump( 241): ###############################################################
- Paste this message on the bug, this will allow me to reproduce the issue
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Flags: needinfo?(gsvelto) → needinfo?(isabelrios)
Comment 5•11 years ago
|
||
Gabriele, OMA CP message example attached. Please feel free to request us what you need. FYI AFAIK this bug only reproduces on v1.3 branch. Thanks.
Flags: needinfo?(isabelrios)
Assignee | ||
Comment 6•11 years ago
|
||
Thanks José, this should do the trick.
Comment 7•11 years ago
|
||
Gabriele, just tested bug 991628 (OMA CP) in v1.3 and found this issue:
E/GeckoConsole( 841): [JavaScript Error: "TypeError: timestamp is undefined" {file: "app://wappush.gaiamobile.org/js/messagedb.js" line: 237}]
This seems to cause all messages have expired once the user click on a notification.
Assignee | ||
Comment 8•11 years ago
|
||
(In reply to José Antonio Olivera Ortega [:jaoo] from comment #7)
> Gabriele, just tested bug 991628 (OMA CP) in v1.3 and found this issue:
>
> E/GeckoConsole( 841): [JavaScript Error: "TypeError: timestamp is
> undefined" {file: "app://wappush.gaiamobile.org/js/messagedb.js" line: 237}]
>
> This seems to cause all messages have expired once the user click on a
> notification.
Yeah, it looks like an issue in the notification event handler.
Assignee | ||
Comment 9•11 years ago
|
||
I managed to confirm the STR in comment 0 but this is not a WAP Push-specific issue: I get the same problem using the SMS app. Will investigate further to discover what's broken.
Assignee | ||
Comment 10•11 years ago
|
||
I've verified that this is not a WAP Push issue, the problem appears with all applications using notifications. When tapping on the notification on the overlay the relevant code in the system app does not remove the notification as it would do when tapped on the utility tray. I've traced down the issue to this statement which is being evaluated as false:
https://github.com/mozilla-b2g/gaia/blob/v1.3/apps/system/js/notifications.js#L245
I still have to figure out why this is happening but hopefully it should be a quick thing. Moving to the Gaia::System component as that's where this belongs.
Component: Gaia::Wappush → Gaia::System
Comment 11•11 years ago
|
||
(In reply to Gabriele Svelto [:gsvelto] from comment #10)
> I've verified that this is not a WAP Push issue, the problem appears with
> all applications using notifications. When tapping on the notification on
> the overlay the relevant code in the system app does not remove the
> notification as it would do when tapped on the utility tray. I've traced
> down the issue to this statement which is being evaluated as false:
>
> https://github.com/mozilla-b2g/gaia/blob/v1.3/apps/system/js/notifications.
> js#L245
>
> I still have to figure out why this is happening but hopefully it should be
> a quick thing. Moving to the Gaia::System component as that's where this
> belongs.
That means it's a regression from bug 890440.
Assignee | ||
Comment 12•11 years ago
|
||
After studying the code I can confirm this is indeed a regression introduced by bug 890440. I have more STRs than the original one as more scenarios can trigger this issue:
- SMS app
- open the SMS app and stay in the thread-list on the DUT
- send a message to the DUT
- tap on the notification when it appears in the overlay on top of the screen (not the utility tray)
- the SMS app shows the message but the notification is not removed
Assignee | ||
Comment 13•11 years ago
|
||
This patch fixes the issue by modifying Notification.tap() to not mix up the toaster and notification nodes when deciding if a notification should be removed. This lacks unit-tests so consider it a WIP, I'll add them ASAP.
Attachment #8404630 -
Flags: review?(alive)
Assignee | ||
Comment 14•11 years ago
|
||
Here's the complete pull request.
Assignee | ||
Comment 15•11 years ago
|
||
Attachment #8404630 -
Attachment is obsolete: true
Attachment #8404630 -
Flags: review?(alive)
Attachment #8404681 -
Flags: review?(alive)
Assignee | ||
Updated•11 years ago
|
Attachment #8404630 -
Attachment description: [PATCH] Fix removal of old API notifications when selected from the toaster → [PATCH WIP] Fix removal of old API notifications when selected from the toaster
Assignee | ||
Comment 16•11 years ago
|
||
Note for the reviewer, my patch fixes the underlying issue to the problem described in comment 0, i.e. old style notifications are not properly removed when tapping on the toaster. My patch fixes this and was written against gaia/master but it also applies cleanly to gaia/1.3. The STR in comment 0 does not apply to gaia/master because the WAP Push app has been using the new API for notifications since 1.4 but other applications still using old-style notifications might be affected so I thought it would be better to fix it once and for all.
Assignee | ||
Comment 17•11 years ago
|
||
FYI this is the Travis run: https://travis-ci.org/mozilla-b2g/gaia/builds/22692981
Updated•11 years ago
|
Attachment #8404681 -
Flags: review?(alive) → review+
Assignee | ||
Comment 18•11 years ago
|
||
Thanks for the review Alive, pushed to gaia/master cca15facac7ba6a8e8654685149a84a307523691
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
status-b2g-v1.3:
--- → affected
status-b2g-v1.3T:
--- → affected
status-b2g-v1.4:
--- → affected
status-b2g-v2.0:
--- → fixed
Assignee | ||
Comment 19•11 years ago
|
||
Comment on attachment 8404681 [details] [diff] [review]
[PATCH] Fix removal of old API notifications when selected from the toaster
[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): bug 890440
[User impact] if declined: when tapping on the notification toaster the associated notification is not removed from the utility tray in applications using the old notification API, this affects practically all notifications in v1.3/v1.3t
[Testing completed]: tested on a device and in the emulator both with the SMS and WAP Push applications. The issue was also covered in unit-tests.
[Risk to taking this patch] (and alternatives if risky): none that I can think of, the change only affects old-style notifications and doesn't change existing code dealing with them except for the toaster-specific case in the system app
[String changes made]: none
Attachment #8404681 -
Flags: approval-gaia-v1.4?(fabrice)
Attachment #8404681 -
Flags: approval-gaia-v1.3?(fabrice)
Comment 20•11 years ago
|
||
Comment on attachment 8404681 [details] [diff] [review]
[PATCH] Fix removal of old API notifications when selected from the toaster
Review of attachment 8404681 [details] [diff] [review]:
-----------------------------------------------------------------
I'm not doing approvals for 1.4
Attachment #8404681 -
Flags: approval-gaia-v1.4?(release-mgmt)
Attachment #8404681 -
Flags: approval-gaia-v1.4?(fabrice)
Attachment #8404681 -
Flags: approval-gaia-v1.3?(release-mgmt)
Attachment #8404681 -
Flags: approval-gaia-v1.3?(fabrice)
Comment 21•11 years ago
|
||
NI on :echen to help verify this on master/m-c before the branch uplifts.
Flags: needinfo?(echen)
Keywords: verifyme
Comment 22•11 years ago
|
||
I think you meant to flag Eric.
Flags: needinfo?(echen) → needinfo?(echang)
Comment 23•11 years ago
|
||
http://youtu.be/CLehe7gvFbE
MASTER
Gaia 553da99ab09b6b894d9f95bb06b16b6e1ddbf0a1
Gecko https://hg.mozilla.org/mozilla-central/rev/5b6e82e7bbbf
BuildID 20140414160205
Version 31.0a1
The notification is clear, but the accept button is not working, let me search if there is existing bug for that.
Flags: needinfo?(echang)
Comment 24•11 years ago
|
||
(In reply to Eric Chang [:ericcc] [:echang] from comment #23)
> http://youtu.be/CLehe7gvFbE
>
> MASTER
> Gaia 553da99ab09b6b894d9f95bb06b16b6e1ddbf0a1
>
> Gecko https://hg.mozilla.org/mozilla-central/rev/5b6e82e7bbbf
>
> BuildID 20140414160205
>
> Version 31.0a1
>
> The notification is clear, but the accept button is not working, let me
> search if there is existing bug for that.
Assuming this as verified then, please file a new bug if need be as a follow-up here.
Updated•11 years ago
|
Attachment #8404681 -
Flags: approval-gaia-v1.4?(release-mgmt)
Attachment #8404681 -
Flags: approval-gaia-v1.4+
Attachment #8404681 -
Flags: approval-gaia-v1.3?(release-mgmt)
Attachment #8404681 -
Flags: approval-gaia-v1.3+
Comment 25•11 years ago
|
||
With the OMA CP message sent from carrier, it works, make it all the way to the data settings, no need to file another bug, thanks.
Gaia 0996eecb1b34e66dba6ab082a9b4f03e6861c0de
Gecko b7d7d9a2d4c5c9c2d620d237685700dd560cafce
BuildID 20140417041552
Version 30.0a2
Comment 26•11 years ago
|
||
v1.4: https://github.com/mozilla-b2g/gaia/commit/3b4f48230eefb87e0e7add68d36904626bcd38ef
v1.3: https://github.com/mozilla-b2g/gaia/commit/4aae5c8e9ac9a3d7ea7e83172dda6e11169cd677
Target Milestone: --- → 1.4 S6 (25apr)
Updated•11 years ago
|
Comment 27•11 years ago
|
||
2.0 Flame: When overlay notification is tapped, SMS app is opened and notification in utility tray is removed.
1.4 Buri: When overlay notification is tapped, SMS app is opened and notification in utility tray is removed.
1.3 Buri: When overlay notification is tapped, SMS app is opened and notification in utility tray is removed.
1.3 Environmental Variables:
Device: Buri 1.3 MOZ
BuildID: 20140528024003
Gaia: 0ce948e378cab7ed3db20231281dd7ca2eb99779
Gecko: ce0dd450bffb
Version: 28.0
Firmware Version: v1.2-device.cfg
1.4 Environmental Variables:
Device: Buri 1.4 MOZ
BuildID: 20140529000204
Gaia: 7bc1c15c67661a0b8e35f18f15a9d03d1d2cfcd5
Gecko: 2181cac4d0fc
Version: 30.0
Firmware Version: v1.2-device.cfg
2.0 Environmental Variables:
Device: Flame 2.0 MOZ
BuildID: 20140529040201
Gaia: 4142df90c71abdc1e3a87cd37dff1a22d5e38b34
Gecko: 1e712b724d17
Version: 32.0a1
Firmware Version: 10g-2
You need to log in
before you can comment on or make changes to this bug.
Description
•