Error when a logged in tab attempts an action after another tab logs the user out

Bug #494219 reported by Markus Korn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

If a user is not logged in and clicks in the 'Assigned to' field of a task, the AJAX widget pops-up and let the user search for an assignee,
 * selecting a user there results in an error """ Unauthorized (, 'transitionToAssignee', 'launchpad.Edit') """
 * selecting 'Assign me' closes the popup but let the progress throbber spin forever

Trying to assign a person to a task when not logged in should have the same behavior than the 'Status' field, it should just redirect to login.

Steps to reproduce:
1. Logged in open https://bugs.qastaging.launchpad.net/launchpad/+bug/2112
2. Open another tab and log out from there
3. Go back to the page opened in step 1
4. Click any of the edit buttons

You see the "Unauthorized (, 'transitionToAssignee', 'launchpad.Edit')" error rather than the login page.

Revision history for this message
Markus Korn (thekorn) wrote :
Deryck Hodge (deryck)
Changed in malone:
status: New → Triaged
importance: Undecided → High
tags: added: bug-page javascript ui
Huw Wilkins (huwshimi)
tags: added: ui-easy
tags: added: easy
removed: ui-easy
Revision history for this message
Robert Collins (lifeless) wrote : Re: Trying to assign a task to a user when not logged results in an Unauthorized error

I suspect we want an in-place login widget or some such.

summary: - Trying to assign a task to a user when not logged in does not redirect
- to login page
+ Trying to assign a task to a user when not logged results in an
+ Unauthorized error
j.c.sackett (jcsackett)
Changed in launchpad:
assignee: nobody → j.c.sackett (jcsackett)
Revision history for this message
j.c.sackett (jcsackett) wrote :

This is already fixed; if you're not logged in you don't have an edit option for the "Assigned to" section.

Changed in launchpad:
assignee: j.c.sackett (jcsackett) → nobody
status: Triaged → Fix Released
j.c.sackett (jcsackett)
tags: added: dublin
Revision history for this message
Robert Collins (lifeless) wrote :

I've reopened this, because the internet is concurrent :) Easy way to reproduce:
 - login
 - open a bug page
 - log out without closing that page
 - perform the action

Now, we can argue that this is rare and shouldn't be high - sure.

OTOH if we zap our session database for some reason, *every* active user will suddenly run into this.

Changed in launchpad:
status: Fix Released → Triaged
Benji York (benji)
Changed in launchpad:
assignee: nobody → Benji York (benji)
status: Triaged → In Progress
Revision history for this message
Benji York (benji) wrote :

This must have been fixed as a side-effect of some other change. If I perform the set of steps shown in the screen cast I don't get the never-ending spinner any more, now I get the expected error message box.

Changed in launchpad:
status: In Progress → Invalid
description: updated
Changed in launchpad:
status: Invalid → Triaged
Benji York (benji)
Changed in launchpad:
status: Triaged → In Progress
Benji York (benji)
Changed in launchpad:
status: In Progress → Triaged
Benji York (benji)
Changed in launchpad:
assignee: Benji York (benji) → nobody
Revision history for this message
Robert Collins (lifeless) wrote :

reproduces easily for me following the description instructions

summary: - Trying to assign a task to a user when not logged results in an
- Unauthorized error
+ Error when a logged in tab attempts an action after another tab logs the
+ user out
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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