[Facebook] User not logged after granting permission

Bug #1507995 reported by Víctor R. Ruiz
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
David Barth
Online Accounts setup for Ubuntu Touch
Fix Released
High
Alberto Mardegan
webapps-sprint
Fix Released
High
Alberto Mardegan

Bug Description

Test case.
- Open System Settings > Accounts.
- Add a Facebook account.
- Go to the Dash.
- Open Facebook app.
- Grant permissions.

Expected result.
- User is logged in Facebook.

Actual result.
- Facebook login page is presented, and screen seems freeze.

Tags: qa-silo

Related branches

Víctor R. Ruiz (vrruiz)
summary: - [Facebook] After granting permission, login screen appears
+ [Facebook] User not logged after granting permission
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I had a similar experience, I granted access to the account but then needed to log in, which did work

Changed in canonical-devices-system-image:
assignee: nobody → David Barth (dbarth)
importance: Undecided → High
milestone: none → backlog
status: New → Confirmed
David Barth (dbarth)
Changed in ubuntu-system-settings-online-accounts:
assignee: nobody → Alberto Mardegan (mardy)
importance: Undecided → High
status: New → Confirmed
Changed in webapps-sprint:
assignee: nobody → Alberto Mardegan (mardy)
importance: Undecided → High
status: New → Confirmed
milestone: none → sprint-15
Revision history for this message
Alberto Mardegan (mardy) wrote :

We are now using a different application key for the facebook webapp, so it's expected that the user will have to authorize it separately.
The freeze, or course, is not expected. :-)

Victor, when the freeze happens, can you switch to other applications, or is the whole device frozen? Also, you wrote that it "seems to freeze": does it mean that it freezes just for a short time, and then it resumes normally?

Changed in ubuntu-system-settings-online-accounts:
status: Confirmed → Incomplete
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote : Re: [Bug 1507995] Re: [Facebook] User not logged after granting permission

I cannot interact with the app, the refresh button doesn't work. But
I'm able to switch to other applications.

David Barth (dbarth)
Changed in webapps-sprint:
milestone: sprint-15 → sprint-10
milestone: sprint-10 → sprint-16
Revision history for this message
Alberto Mardegan (mardy) wrote :

Hi Victor, can you reproduce this bug again?

If so:
1) what version of the facebook webapp are you using?
2) Did you create the facebook account in the system settings long ago, or can you reproduce the bug even with a freshly-created account?
3) Do you actually get the facebook *login* dialog, or is it just the facebook page where you are asked to grant access to "Ubuntu Web App"?

David Barth (dbarth)
Changed in webapps-sprint:
milestone: sprint-16 → sprint-18
Alberto Mardegan (mardy)
Changed in webapps-sprint:
status: Confirmed → Incomplete
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

1) com.ubuntu.developer.webapps.webapp-facebook 1.2
2) I was using my personal account, so it was created long ago.
3) Yes, I get the same dialog and I would get if no account was available on System Settings > Acccounts.

Revision history for this message
Alberto Mardegan (mardy) wrote :

Victor, just to clarify: when exactly does the freeze happen? In comment #3 you mention that the "Refresh button" is not responsive, but AFAIR we don't have a refresh button in the login dialog. Do you mean that you can successfully login and authorize the facebook webapp, and the application freezes only later, once the authentication page disappears?

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

Ahh, I don't see a freeze anymore. However, the login problem remains.

Revision history for this message
Alberto Mardegan (mardy) wrote :

I could actually reproduce it myself. For some reason, the call to move the cookies into the container is failing, as the attached logs show. Will investigate.

Changed in webapps-sprint:
status: Incomplete → Confirmed
Changed in ubuntu-system-settings-online-accounts:
status: Incomplete → Confirmed
Revision history for this message
Alberto Mardegan (mardy) wrote :

I found the issue: the code in UnityWebapps asks the webview to navigate to m.facebook.com *before* we move the cookies; this makes it so that the cookie jar gets populated with some defalt cookies and then the move fails.

Revision history for this message
Alberto Mardegan (mardy) wrote :

The attached branch should fix the authentication issues; however, the "freeze" is still there, and I've reported it as bug 1536100.

Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: backlog → ww08-2016
David Barth (dbarth)
Changed in webapps-sprint:
status: Confirmed → Fix Committed
Changed in ubuntu-system-settings-online-accounts:
status: Confirmed → Fix Committed
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
David Barth (dbarth)
Changed in ubuntu-system-settings-online-accounts:
status: Fix Committed → Fix Released
Changed in webapps-sprint:
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.