Closed Bug 940571 Opened 12 years ago Closed 12 years ago

Blank page on web pay

Categories

(Marketplace Graveyard :: Payments/Refunds, defect)

x86
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2013-12-10

People

(Reporter: andy+bugzilla, Assigned: muffinresearch)

References

Details

STR: 1. Start a purchase, enter your PIN and get to a Bango page, then cancel. 2. Restart the purchase. Actual result: You hit a web page that is completely blank. Expected result: Redirected on to the Bango payment page. After leaving it alone for 5 mins+ and letting my PIN timeout, I was able to go through the flow successfully after entering my PIN. Suggesting there was something wrong with the flow that occurs when a PIN has already been entered.
Let's try adb logcat on this.
Flags: needinfo?(amckay)
Flags: needinfo?(amckay)
OS: Mac OS X → Android
The STR is valid and occcurred on stage for me quite regularly. [16:20:58.916] [payments] Calling mozPay with JWT: eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJhdWQiOiAibWFya2V0cGxhY2UuYWxsaXpvbS5vcmciLCAiaXNzIjogIm1hcmtldHBsYWNlLmFsbGl6b20ub3JnIiwgInJlcXVlc3QiOiB7Im5hbWUiOiAiVGVzdCBBcHAgKGMwazcpIiwgImNoYXJnZWJhY2tVUkwiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5hbGxpem9tLm9yZy9zZXJ2aWNlcy93ZWJwYXkvY2hhcmdlYmFjayIsICJwcm9kdWN0RGF0YSI6ICJhZGRvbl9pZD00NDAxNDkmYXBwbGljYXRpb25fc2l6ZT00MTgmc2VsbGVyX3V1aWQ9MzlhNjFmZjItMGIwZC00ZjAwLWJlZGUtY2JlOWUyNmMwZjEzJmNvbnRyaWJfdXVpZD1iNTcwZDUyNmFkOWZmNjMzZjUwMjI2YTJiNGJiNmRlYyIsICJwcmljZVBvaW50IjogIjEwIiwgImljb25zIjogeyI0OCI6ICJodHRwczovL21hcmtldHBsYWNlLWNkbi5hbGxpem9tLm9yZy9pbWcvdXBsb2Fkcy9hZGRvbl9pY29ucy80NDAvNDQwMTQ5LTQ4LnBu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M4NDQ2MTEyOCIsICIxMjgiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS1jZG4uYWxsaXpvbS5vcmcvaW1nL3VwbG9hZHMvYWRkb25faWNvbnMvNDQwLzQ0MDE0OS0xMjgucG5nP21vZGlmaWVkPTEzODQ0NjExMjgiLCAiNTEyIjogImh0dHBzOi8vbWFya2V0cGxhY2UtY2RuLmFsbGl6b20ub3JnL2ltZy91cGxvYWRzL2FkZG9uX2ljb25zLzQ0MC80NDAxNDktNTEyLnBuZz9tb2RpZmllZD0xMzg0NDYxMTI4IiwgIjI1NiI6ICJodHRwczovL21hcmtldHBsYWNlLWNkbi5hbGxpem9tLm9yZy9pbWcvdXBsb2Fkcy9hZGRvbl9pY29ucy80NDAvNDQwMTQ5LTI1Ni5wbmc_bW9kaWZpZWQ9MTM4NDQ2MTEyOCJ9LCAicG9zdGJhY2tVUkwiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5hbGxpem9tLm9yZy9zZXJ2aWNlcy93ZWJwYXkvcG9zdGJhY2siLCAiaWQiOiAibWFya2V0cGxhY2U6NDQwMTQ5IiwgImRlc2NyaXB0aW9uIjogIlRoaXMgYXBwIGhhcyBiZWVuIGF1dG9tYXRpY2FsbHkgZ2VuZXJhdGVkIGJ5IHRlc3RtYW5pZmVzdC5jb20ifSwgImV4cCI6IDEzODYwMzM2NDUsICJpYXQiOiAxMzg2MDMwMDQ1LCAidHlwIjogIm1vemlsbGEtc3RhZ2UvcGF5bWVudHMvcGF5L3YxIn0.i7Ka2RjQmcRvV14lOctFTcRqwWRilrBLOYO8t-EVySs [HTTP/1.1 302 FOUND 522ms] [16:20:46.187] GET https://marketplace.allizom.org/mozpay/bounce?next=/mozpay/wait_to_start [HTTP/1.1 200 OK 97ms] [16:20:46.451] GET https://login.persona.org/include.js [HTTP/1.1 304 Not Modified 356ms] [16:20:46.452] POST https://marketplace.allizom.org/mozpay/services/csp/report [HTTP/1.1 200 OK 145ms] [16:21:00.359] "[tracking] Setting up GA tracking" [16:21:00.374] "[tracking] Tracking initialized" [16:21:00.389] "[cli] mozPaymentProvider.iccIds?" undefined [16:21:00.390] "[cli] mozPaymentProvider.mcc?" undefined [16:21:00.390] "[cli] mozPaymentProvider.mnc?" undefined [16:21:00.391] "[cli] mozPaymentProvider.sendSilentSms?" undefined [16:21:00.482] [tracking] Setting up GA tracking [16:21:00.484] [tracking] Tracking initialized [16:21:00.486] [cli] mozPaymentProvider.iccIds? undefined [16:21:00.489] [cli] mozPaymentProvider.mcc? undefined [16:21:00.492] [cli] mozPaymentProvider.mnc? undefined [16:21:00.496] [cli] mozPaymentProvider.sendSilentSms? undefined [16:20:47.284] GET https://ssl.google-analytics.com/__utm.gif?utmwv=5.4.6&utms=28&utmn=276825109&utmhn=marketplace.allizom.org&utmcs=UTF-8&utmsr=360x592&utmvp=360x519&utmsc=16-bit&utmul=en-us&utmje=0&utmfl=-&utmdt=Web%20Pay&utmhid=960003668&utmr=-&utmp=%2Fmozpay%2Fbounce%3Fnext%3D%2Fmozpay%2Fwait_to_start&utmht=1386030060616&utmac=UA-36116321-6&utmcc=__utma%3D42843833.231962677.1382636329.1385661572.1386029551.17%3B%2B__utmz%3D42843833.1382723392.3.3.utmcsr%3Dwiki.mozilla.org%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2FMarketplace%2FPaymentAndroid%3B&utmu=qAC~ [HTTP/1.1 200 OK 18ms] [16:21:00.719] "[pay] flow=" "bounce" [16:21:00.726] "[id] watch: loggedInUser" "string" "" [16:21:00.823] [pay] flow= bounce [16:21:00.826] [id] watch: loggedInUser string [16:20:47.452] GET https://login.persona.org/communication_iframe [HTTP/1.1 304 Not Modified 561ms] [16:20:48.342] GET https://login.persona.org/wsapi/session_context [HTTP/1.1 200 OK 125ms] [16:20:48.634] GET https://login.persona.org/wsapi/list_emails [HTTP/1.1 200 OK 131ms] [16:20:48.832] GET https://login.persona.org/wsapi/address_info?email=amckay%40mozilla.com&issuer=default [HTTP/1.1 200 OK 275ms] [16:21:02.509] "[pay] nav.id onlogout from bounce" [16:21:02.510] "[pay] default onLogout" [16:21:02.513] "[auth] Begin webpay user reset" [16:20:49.188] POST https://marketplace.allizom.org/mozpay/auth/reset_user [HTTP/1.1 200 OK 83ms] [16:21:02.551] [pay] nav.id onlogout from bounce [16:21:02.553] [pay] default onLogout [16:21:02.556] [auth] Begin webpay user reset [16:21:02.628] "[auth] reset webpay user" [16:21:02.679] [auth] reset webpay user [16:20:49.297] GET https://ssl.google-analytics.com/__utm.gif?utmwv=5.4.6&utms=29&utmn=1840918723&utmhn=marketplace.allizom.org&utmt=event&utme=5(Consumer%20Payment%20Flow*webpay%20user%20reset*Reset%20User%20Success)&utmcs=UTF-8&utmsr=360x592&utmvp=360x519&utmsc=16-bit&utmul=en-us&utmje=0&utmfl=-&utmdt=Web%20Pay&utmhid=960003668&utmr=-&utmp=%2Fmozpay%2Fbounce%3Fnext%3D%2Fmozpay%2Fwait_to_start&utmht=1386030062642&utmac=UA-36116321-6&utmcc=__utma%3D42843833.231962677.1382636329.1385661572.1386029551.17%3B%2B__utmz%3D42843833.1382723392.3.3.utmcsr%3Dwiki.mozilla.org%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2FMarketplace%2FPaymentAndroid%3B&utmu=6AC~ [HTTP/1.1 200 OK 15ms]
What's happening is the logout is occurring in the bounce view. This logout view is attempting to show the sign-in button which is not possible since that's not part of the template. Logout in the bounce view is a dead-end. * First port of call is to fix the logout behaviour so it works so we don't have the blank screen. * Next step is to work out why the logout is happening in the first place, because presumably it shouldn't be happening so soon?
I think the scope of this bug should be to fix the logout dead-end. Once that's done we should open a separate bug for the other part.
Assignee: nobody → scolville
Status: NEW → ASSIGNED
So looking into this further. Fixing the template to show the correct sign-in link is trivial - however the fact that we are logged out here is definitely the real problem. From my local dev here's the console output using a desktop browser: // START OF PAYMENT FLOW. [10:59:08.378] "[tracking] Tracking disabled, aborting init" [10:59:08.380] "[cli] mozPaymentProvider.iccIds?" undefined [10:59:08.380] "[cli] mozPaymentProvider.mcc?" undefined [10:59:08.380] "[cli] mozPaymentProvider.mnc?" undefined [10:59:08.380] "[cli] mozPaymentProvider.sendSilentSms?" undefined [10:59:08.385] "[pin] requesting focus on pin" [10:59:08.385] "[cli] has nothing toShow" [10:59:08.385] "[cli] Focusing pin" [10:59:08.388] "[pin] focused" [10:59:09.201] "[pay] flow=" "lobby" [10:59:09.202] "[id] watch: loggedInUser" "string" "" [10:59:09.561] "[pay] nav.id onlogout from lobby" [10:59:09.561] "[pay] default onLogout" [10:59:09.561] "[auth] Begin webpay user reset" [10:59:09.578] "[auth] reset webpay user" [10:59:11.947] Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ http://mp.mozilla.dev/mozpay/media/js/lib/jquery-1.8.js?build=1375871180:3263 [10:59:23.835] "[pay] signing in manually" [10:59:23.836] "[pay] Starting login timer." [10:59:37.854] "[pay] nav.id onlogin" [10:59:37.854] "[pay] Clearing login timer" [10:59:37.854] "[cli] Clearing Full screen error" [10:59:39.802] "[bango] iccIds unavailable" [10:59:39.803] "[pay] requesting focus on pin (login success)" [10:59:39.808] "[longtext] Checking text overflow" [10:59:39.810] "[cli] Focusing pin" [10:59:39.811] "[pin] focused" // ENTER PIN -> /mozpay/fakepay/ [10:59:53.164] "[tracking] Tracking disabled, aborting init" [10:59:53.166] "[cli] mozPaymentProvider.iccIds?" undefined [10:59:53.166] "[cli] mozPaymentProvider.mcc?" undefined [10:59:53.166] "[cli] mozPaymentProvider.mnc?" undefined [10:59:53.166] "[cli] mozPaymentProvider.sendSilentSms?" undefined [10:59:53.974] "[pay] flow=" undefined [10:59:53.974] "[bango] iccIds unavailable" [10:59:55.766] Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ http://mp.mozilla.dev/mozpay/media/js/lib/jquery-1.8.js?build=1375871180:3263 // COMPLETE /mozpay/fakepay -> /mozpay/bango/success/ [11:00:33.229] "[tracking] Tracking disabled, aborting init" [11:00:33.231] "[cli] mozPaymentProvider.iccIds?" undefined [11:00:33.231] "[cli] mozPaymentProvider.mcc?" undefined [11:00:33.231] "[cli] mozPaymentProvider.mnc?" undefined [11:00:33.231] "[cli] mozPaymentProvider.sendSilentSms?" undefined [11:00:33.255] "[pay] flow=" undefined [11:00:33.256] "[bango] iccIds unavailable" [11:00:33.257] "[pay] Waiting for paymentSuccess to appear in scope" [11:00:33.270] Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ http://mp.mozilla.dev/mozpay/media/js/lib/jquery-1.8.js?build=1375871180:3263 [11:00:34.070] "[pay] Waiting for paymentSuccess to appear in scope" // Second time around with active session. [10:56:51.386] "[tracking] Tracking disabled, aborting init" [10:56:51.388] "[cli] mozPaymentProvider.iccIds?" undefined [10:56:51.388] "[cli] mozPaymentProvider.mcc?" undefined [10:56:51.388] "[cli] mozPaymentProvider.mnc?" undefined [10:56:51.388] "[cli] mozPaymentProvider.sendSilentSms?" undefined [10:56:51.480] "[pay] flow=" "bounce" [10:56:51.481] "[id] watch: loggedInUser" "string" "scolville@muffinresearch.com" [10:56:52.152] "[pay] nav.id onlogout from bounce" [10:56:52.152] "[pay] default onLogout" [10:56:52.153] "[auth] Begin webpay user reset" [10:56:52.182] "[auth] reset webpay user" [10:56:54.314] Use of getPreventDefault() is deprecated. Use defaultPrevented instead. @ http://mp.mozilla.dev/mozpay/media/js/lib/jquery-1.8.js?build=1375871180:3263 The interesting part of this is that on the second test we're seeing onlogout called but we're passing a loggedInUser to persona. Based on these docs [1] this means that Persona must think we are logged out for it to call onlogout: [1] https://developer.mozilla.org/en-US/docs/Web/API/navigator.id.watch
A PR for the templating fix is here: https://github.com/mozilla/webpay/pull/359
The logout in comment 5 is covered in bug 939328, bug 939270. The blank page part is fixed in the PR.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-12-10
(In reply to Andy McKay [:andym] from comment #7) > The logout in comment 5 is covered in bug 939328, bug 939270. The blank page > part is fixed in the PR. Can I test using the original STRs?
(In reply to Victor Carciu from comment #8) > (In reply to Andy McKay [:andym] from comment #7) > > The logout in comment 5 is covered in bug 939328, bug 939270. The blank page > > part is fixed in the PR. > > Can I test using the original STRs? Yes you should be able to - note this is seen via android or desktop testing not FFOS.
(In reply to Stuart Colville [:scolville] from comment #9) > (In reply to Victor Carciu from comment #8) > > (In reply to Andy McKay [:andym] from comment #7) > > > The logout in comment 5 is covered in bug 939328, bug 939270. The blank page > > > part is fixed in the PR. > > > > Can I test using the original STRs? > > Yes you should be able to - note this is seen via android or desktop testing > not FFOS. How can we see this on desktop?
(In reply to Victor Carciu from comment #10) > (In reply to Stuart Colville [:scolville] from comment #9) > > (In reply to Victor Carciu from comment #8) > > > (In reply to Andy McKay [:andym] from comment #7) > > > > The logout in comment 5 is covered in bug 939328, bug 939270. The blank page > > > > part is fixed in the PR. > > > > > > Can I test using the original STRs? > > > > Yes you should be able to - note this is seen via android or desktop testing > > not FFOS. > > How can we see this on desktop? Good question - this is the android instructions [1] and I think you can include the same plugin for desktop - but I'm not sure able the enabling the buttons bit. We'll need to find out (I'll ask andym) and we'll update that wiki page. [1] https://wiki.mozilla.org/Marketplace/PaymentAndroid
Verified as fixed on FF25 (Android 4.2.1) (the Web Pay add-on cannot be downloaded on the latest Nightly ). After restarting the payment and multiple attempts to log in, I got the PIN landing page. Should we let this bug opened until we will be able to verify it on desktop too? Thanks!
Good enough for me, thanks.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.