Horizon crashes when removing logged user from project
Bug #1252341 reported by
Guilherme Birk
This bug affects 13 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Lin Hua Cheng | ||
Kilo |
Fix Released
|
Undecided
|
Unassigned | ||
OpenStack Identity (keystone) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Horizon is crashing when removing the logged user from any project.
1 - Log in Horizon with a user that has the admin role.
2 - In the projects panel, modify the project members of any project and add the user that you logged in Horizon to that project. Save the modification.
3 - Without logging out, in the projects panel, edit the project that you have just added the logged user and remove this same user from the project.
4 - When the modification is saved, Horizon shows Unauthorized errors when trying to retrieve the user/project/
5 - If you log out and log in again with the same user everything works fine.
description: | updated |
Changed in horizon: | |
assignee: | nobody → alejandro emanuel paredes (alejandro-e-paredes) |
Changed in horizon: | |
assignee: | alejandro emanuel paredes (alejandro-e-paredes) → Facundo Maldonado (facundo-n-maldonado) |
Changed in keystone: | |
assignee: | nobody → Facundo Maldonado (facundo-n-maldonado) |
Changed in horizon: | |
status: | New → Confirmed |
Changed in keystone: | |
assignee: | Facundo Maldonado (facundo-n-maldonado) → nobody |
Changed in horizon: | |
assignee: | Facundo Maldonado (facundo-n-maldonado) → nobody |
tags: | added: keystone |
Changed in keystone: | |
status: | Confirmed → Won't Fix |
Changed in horizon: | |
assignee: | nobody → Kanchan Gupta (kanchan-gupta1) |
Changed in horizon: | |
assignee: | Kanchan Gupta (kanchan-gupta1) → nobody |
Changed in horizon: | |
assignee: | nobody → Paul Karikh (pkarikh) |
Changed in horizon: | |
status: | Confirmed → In Progress |
Changed in horizon: | |
assignee: | Paul Karikh (pkarikh) → Timur Sufiev (tsufiev-x) |
Changed in horizon: | |
assignee: | Timur Sufiev (tsufiev-x) → Paul Karikh (pkarikh) |
Changed in horizon: | |
assignee: | Paul Karikh (pkarikh) → Vlad Okhrimenko (vokhrimenko) |
Changed in horizon: | |
assignee: | Vlad Okhrimenko (vokhrimenko) → Paul Karikh (pkarikh) |
Changed in horizon: | |
assignee: | Paul Karikh (pkarikh) → Lin Hua Cheng (lin-hua-cheng) |
Changed in horizon: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | liberty-3 → 8.0.0 |
tags: | added: customer-found support |
tags: | removed: customer-found |
tags: | removed: support |
To post a comment you must log in.
This bug is also reproducible if the user has two roles in project (admin and member), and one is removed (member).
In Keystone identity controller ( /keystone/ keystone/ identity :977)
# Now delete any tokens for this user or, in the case of a group,
self. _delete_ tokens_ for_user( user_id)
self. _delete_ tokens_ for_group( group_id)
# tokens from all the uses who are members of this group.
if user_id:
else:
the delete_ token_for_ user is called without the project_id so, the token is removed for all the projects.
Adding project_id solves the case when removing a role for the current user.
For the reported bug, maybe a force logout should be made.
Thoughts?