yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #27950
[Bug 1398331] Re: Disabling current project raises an error "Not Authorized to do this operation" but also sets it as disabled.
** Changed in: horizon
Status: Fix Committed => Fix Released
** Changed in: horizon
Milestone: None => kilo-2
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1398331
Title:
Disabling current project raises an error "Not Authorized to do this
operation" but also sets it as disabled.
Status in OpenStack Dashboard (Horizon):
Fix Released
Status in OpenStack Identity (Keystone):
Won't Fix
Bug description:
When the admin tries to disable the current project through which it
has logged in, it raises an error "Not Authorized to do this
operation" but it sets it as disabled.
Steps to Replicate.
1. Create a test_project and add admin user as an administrator for the project. This admin user is the administrator for admin and demo projects as well.
2. login as admin user and set test_project as the current project.
3. Goto Identity -> Projects tab.
4. Select the test_project, and click on its corresponding Enabled cell. Uncheck the Enabled box and click the tick mark button. An error will pop up "Not Authorized to do this operation".
5. Now when you try to access anything on the webpage a window will pop-up with the error message "Unauthorized: Unable to retrieve information."
6. Logout and login again. Select admin/demo as the current project and goto Identity -> Projects Tab. The test_project will show as disabled (Enabled = False)
Screenshots of the errors attached.
I am not sure if the admin user can disable the project it is logged
in from or not. If it can, then horizon should not raise an error and
if it cannot then only the error message should pop up and the project
should not be set as disabled.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1398331/+subscriptions
References