Closed Bug 1063487 Opened 10 years ago Closed 10 years ago

(Oauth) Authentication is broken in Calendar

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.1+, b2g-v2.0 unaffected, b2g-v2.1 verified, b2g-v2.2 fixed)

VERIFIED FIXED
2.1 S4 (12sep)
blocking-b2g 2.1+
Tracking Status
b2g-v2.0 --- unaffected
b2g-v2.1 --- verified
b2g-v2.2 --- fixed

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

(Keywords: branch-patch-needed, regression, Whiteboard: [systemsfe])

Attachments

(3 files)

If you try to log into a Google Calendar account in the calendar app, you'll be presented with a blank window that you can't escape from. It seems the html for the oath window was updated without updating the corresponding JavaScript (how did this get past review?)
Attached file Update oauth JS to correspond to html (deleted) —
Attachment #8484926 - Flags: review?(mmedeiros)
[Blocking Requested - why for this release]: regression! very important feature! user won't be able to add a Google calendar.
Blocks: 1015292
blocking-b2g: --- → 2.1?
Keywords: regression
Comment on attachment 8484926 [details] Update oauth JS to correspond to html LGTM. changes are minimal, tested on the device. Was able to add a Google Calendar and also click the "back" button.
Attachment #8484926 - Flags: review?(mmedeiros) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Is there any way we can prevent future regressions of this sort?
Whiteboard: [systemsfe]
Target Milestone: --- → 2.1 S4 (12sep)
(In reply to Gareth Aye [:gaye] from comment #5) > Is there any way we can prevent future regressions of this sort? manually test the add account when a patch touches any code related to the oauth window :P this was only introduced because the patch affected multiple views at once and I forgot to add a google account while testing it - I manually tested other views to check the design but didn't realize the oauth window also had changes (code changes looked OK, you can see I added comments related to the layout of other views...). this is the kind of bug that is easy to spot and that we definitely wouldn't ship with it, the likelihood of introducing this kind of regression is minimal, and the fix is usually trivial - if you are coding something related to the oauth window you will probably test it on the phoned during development..
I think we could restructure the unit tests/app a bit so that they inject less of their own markup - that would have caught this (i.e. if it was testing against the markup that's actually in the app, rather than a copy of it in the test). That's a non-trivial change, though. A marionette test for the oauth account flow would be ideal, but again, is non-trivial.
blocking-b2g: 2.1? → 2.1+
Please request Gaia v2.1 approval on this patch when you get a chance :).
Flags: needinfo?(chrislord.net)
Comment on attachment 8484926 [details] Update oauth JS to correspond to html [Approval Request Comment] [Bug caused by] (feature/regressing bug #): [User impact] if declined: Can't add or re-log-in oauth based Calendar accounts (such as Google), and have to close the Calendar app if you try (leaves it in an unrecoverable state) [Testing completed]: Locally and been on master for a few days now [Risk to taking this patch] (and alternatives if risky): Low risk vs. not taking it [String changes made]: None
Attachment #8484926 - Flags: approval-gaia-v2.1?
Flags: needinfo?(chrislord.net)
Attachment #8484926 - Flags: approval-gaia-v2.1? → approval-gaia-v2.1+
Needs rebasing for v2.1 uplift.
Flags: needinfo?(chrislord.net)
Attached file Backport to 2.1 (deleted) —
Flags: needinfo?(chrislord.net)
I'll merge the rebase when tests are green.
Something is up with Gb, but doesn't appear to be anything to do with this (backed up by kgrandon on IRC), so merged: https://github.com/mozilla-b2g/gaia/commit/7627105347fe8e8755002c414c124c9bd87691ec
[Environment] Gaia 944e5b4582c4efa1b67cd33245dbb8f6aa25d09f Gecko https://hg.mozilla.org/releases/mozilla-aurora/rev/7546fedad918 BuildID 20140914160203 Version 34.0a2 ro.build.date Fri Jun 27 15:57:58 CST 2014 ro.bootloader L1TC00011230 ro.build.version.incremental 110 [Result] PASS
Status: RESOLVED → VERIFIED
Attached video video of issue verify (deleted) —
This issue has been verified successfully on Flame 2.1 See attachment: verify_video.MP4 Reproducing rate: 0/5 Flame 2.1 versions: Gaia-Rev afdfa629be209dd53a1b7b6d6c95eab7077ffcd9 Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/dc3018cbdbe6 Build-ID 20141123001201 Version 34.0 Device-Name flame FW-Release 4.4.2 FW-Incremental eng.cltbld.20141123.035029 FW-Date Sun Nov 23 03:50:40 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: