yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #25006
[Bug 1398331] [NEW] Disabling current project raises an error "Not Authorized to do this operation" but also sets it as disabled.
Public bug reported:
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.
** Affects: horizon
Importance: Undecided
Status: New
** Attachment added: "Disable Project.zip"
https://bugs.launchpad.net/bugs/1398331/+attachment/4272713/+files/Disable%20Project.zip
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
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):
New
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
Follow ups
References