Horizon crashes when deleting logged user primary project

Bug #1252785 reported by Guilherme Birk
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Unassigned

Bug Description

When the primary project of the logged user is deleted Horizon crashes with unauthorized errors.

1 - Create a project
2 - Create a user with admin role on the project recently created.
3 - Log in using the created user.
4 - In the projects panel, select the recently created project and delete it.
5 - Horizon crashes with Unauthorized errors when trying to retrieve the users/projects/image/... list.

Tags: keystone
Revision history for this message
chenhaiq (chenhaiq) wrote :

I can see "Unauthorized errors", but Horizon does not crash.

It should logout in this kind of error.

Revision history for this message
Kun Huang (academicgareth) wrote :

Or warn "you are deleting yourself" first?

Revision history for this message
chenhaiq (chenhaiq) wrote :

This is behavior is introduced by code fix from:
https://bugs.launchpad.net/horizon/+bug/1060426

It changed Horizon to prompt a message instead of logging out on unauthorized exception.
However, lots of functions did not handle the unauthorized exception in Horizon, and return exception to user directly.

I'd like to promote user error message and logout.

Changed in horizon:
status: New → Confirmed
chenhaiq (chenhaiq)
Changed in horizon:
assignee: nobody → chenhaiq (chenhaiq)
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/59933

Changed in horizon:
status: Confirmed → In Progress
Akihiro Motoki (amotoki)
tags: added: keystone
removed: horizon project remove
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :

Fixed at part of bug 1252341.

Changed in horizon:
assignee: chenhaiq (chenhaiq) → nobody
importance: Undecided → Medium
status: In Progress → Fix Released
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.