Closed Bug 1057033 Opened 10 years ago Closed 10 years ago

After sign in, user is prompted to sign in again

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P2)

x86
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: krupa.mozbugs, Unassigned)

References

Details

(Keywords: regression)

Attachments

(4 files)

Connectivity: wifi
SIM used: movistar Spain 
Gaia/device: 1.4/hamachi


steps to reproduce:
1. Tester is not logged in
2. Search for :paid
3. Start the purchase of a paid app
4. Sign in using persona

expected behavior:
After sign in, user is prompted to create/enter PIN


actual behavior:
After sign in, user is prompted to sign in again

pastebin of verbose logging: https://pastebin.mozilla.org/6086676
according to logs this is on stage
Blocks: 837289
I just did this on stage and wasn't asked to login a second time albeit on a Keon running 1.3.

Krupa: from your logs I can't see you have got as far as the app. Can you retry the STR and provide more logs covering that, as that might provide some insight as to what's happening.
Flags: needinfo?(krupa.mozbugs)
Priority: -- → P2
Attached file logcat.txt (deleted) —
preserving the pastebin before it disappears
Attached file double-signon.txt (deleted) —
I am testing on 1.4/hamachi.

Make sure you are not logged in when you start the purchase flow.
Flags: needinfo?(krupa.mozbugs)
So after much flashing of the hamachi device I have I'm not able to get the device in a usable state with 1.4 in order to test it.

1.3 on the hamachi appears to work correctly.
 
Interestingly this does seem similar to the issues seen on desktop where persona always fires onlogout every single time.

Do we know what releases are going to hit devices in the wild? Looking at this doc it's a bit cloudy https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Phone_specs
Flags: needinfo?(krupa.mozbugs)
Right now, these two bugs are blocking me from getting you more logs


https://bugzilla.mozilla.org/show_bug.cgi?id=1061923 on 1.4
https://bugzilla.mozilla.org/show_bug.cgi?id=1060376 on 2.1
Flags: needinfo?(krupa.mozbugs)
Attached video video of signing in twice (deleted) —
Attached file once-again-sign in-twice.txt (deleted) —
Ah, I think I see the connection between this and bug 1061923

In both cases loggedInUser is not set in the page. When persona calls onReady bug 1061923 happens because we only do the impliedLogin if loggedInUser is set. For this case loggedInUser isn't set so onLogout fires which causes you to see the login again.
The need to login twice is also seen on the desktop and I can see data-logged-in-user not being set in webpay there too.

E.g.

If you visit /developers and are logged in and then go to /mozpay/?req=foo if you introspect the page the data-logged-in-user is unset.
Blocks: 909896
This is fixed with the move to Firefox Accounts.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: