user_roles handles invalid user badly

Bug #798386 reported by Mark Gius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Mark Gius

Bug Description

in function nova/admin.py - user_roles the behavior when the user_id is missing from the dashboard user db but is present in nova.

When running a GET request, if the submitted user cannot be found in the dashboard the page but is present in nova renders succesfully, except that the username on the form is missing. The submitted user_id is still forwarded on to nova even if the dashboard user is not present.

On POST, the dashboard userid is not used unless the form fails to validate, in which case the same behavior as a GET is seen.

This bug may become irrelevant if/when unified auth (keystone) is integrated into nova and the dashboard.

Reproduction Steps:
=============

Configure the dashboard for a nova API.

Run =manage.py syncdb=

Provide credentials for an admin user when presented.

Delete local/dashboard_openstack.sqlite3

Run = manage.py syncdb= again.

Provide different username/email.

Load up admin/roles/USERNAME2/

Notice everything looks good.

Load admin/roles/USERNAME1/

Page loads but username is missing.

Revision history for this message
Mark Gius (markgius) wrote :

project_view in the admin views has a simliar issue

Revision history for this message
Mark Gius (markgius) wrote :

and project_user

Revision history for this message
Devin Carlen (devcamcar) wrote :

Keystone support fixed this.

Changed in openstack-dashboard:
status: New → Fix Released
importance: Undecided → High
milestone: none → diablo-2
assignee: nobody → Mark Gius (markgius)
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.