Deleting currently scoped project breaks session

Bug #1324662 reported by David Lapsley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Undecided
Unassigned

Bug Description

Horizon gets very unhappy if you delete the currently scoped project.

Here's how to reproduce:

1. Create a new project
2. Add current user to this project as an admin user
3. Change to the new project context
4. Delete the project from Admin/Identity/Projects

Horizon will return to the Projects view with an error message, but many views are broken due to the invalidation of the current token. Behavior will range from ISE to error messages.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/96638

Changed in horizon:
assignee: nobody → David Lapsley (dlapsley)
status: New → In Progress
Revision history for this message
David Lyle (david-lyle) wrote :

Why would you delete the current project while scoped to the project?

Revision history for this message
Nicolas Simonds (nicolas.simonds) wrote :

Because users.

Revision history for this message
Liz Blanchard (lblanchard) wrote :

Would there be a case for a larger environment where a few users might be scoped to a certain project and an admin comes in separately and deletes it?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Lyle (<email address hidden>) on branch: master
Review: https://review.openstack.org/96638
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Matthias Runge (mrunge)
Changed in horizon:
status: In Progress → Confirmed
assignee: David Lapsley (dlapsley) → nobody
Revision history for this message
Mark Chappell (mchappel) wrote :

David, having hit this issue in Icehouse: Because Horizon hides the fact that you're currently still in the project/tenant when you switch back over to the admin tab.

I went into a project to delete a router, switched back to the admin tab, deleted the project and watched Horizon throw lots of errors at me because I was technically still in the project I just deleted.

Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Fixed as part of bug 1252341.

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.