Switching the project also switches the region

Bug #1357047 reported by Justin Pomeroy
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
django-openstack-auth
Fix Released
Medium
Eric Peterson

Bug Description

The following scenario can occur when there are multiple service region endpoints and multiple projects:

1. Login using initial region
2. Switch to a different region
3. Switch to a different project

The result of this is that the region is set back to the initial region that was used after logging in. I would expect that the region remains the same after switching the project.

Tags: ux
Justin Pomeroy (jpomero)
Changed in django-openstack-auth:
assignee: nobody → Justin Pomeroy (jpomero)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to django_openstack_auth (master)

Fix proposed to branch: master
Review: https://review.openstack.org/114401

Changed in django-openstack-auth:
status: New → In Progress
tags: added: ux
Changed in django-openstack-auth:
importance: Undecided → Medium
Changed in django-openstack-auth:
assignee: Justin Pomeroy (jpomero) → Eric Peterson (ericpeterson-l)
Changed in django-openstack-auth:
assignee: Eric Peterson (ericpeterson-l) → Justin Pomeroy (jpomero)
Revision history for this message
Justin Pomeroy (jpomero) wrote :

There are currently two fixes out for this bug. The other one from Eric Peterson is here: https://review.openstack.org/#/c/119202. I think the only real difference is that Eric's fix saves the selected region in a cookie so that it sticks across sessions, whereas my fix linked above only persists the selected region when obtaining a new token, such as when switching projects. We'll need to decide which approach to use.

Akihiro Motoki (amotoki)
Changed in django-openstack-auth:
milestone: none → 1.1.8
Changed in django-openstack-auth:
assignee: Justin Pomeroy (jpomero) → Eric Peterson (ericpeterson-l)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on django_openstack_auth (master)

Change abandoned by Justin Pomeroy (<email address hidden>) on branch: master
Review: https://review.openstack.org/114401
Reason: Abandoning in favor of this fix which saves the last selected region in the session: https://review.openstack.org/#/c/119202

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to django_openstack_auth (master)

Fix proposed to branch: master
Review: https://review.openstack.org/133540

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to django_openstack_auth (master)

Reviewed: https://review.openstack.org/119202
Committed: https://git.openstack.org/cgit/openstack/django_openstack_auth/commit/?id=4ceb57d02b8bbed30578a8052a31b982a1339f41
Submitter: Jenkins
Branch: master

commit 4ceb57d02b8bbed30578a8052a31b982a1339f41
Author: eric <email address hidden>
Date: Thu Sep 4 14:48:25 2014 -0600

    Make region and project sticky

    This change will make the region and project "sticky" in that whatever is selected
    will remain selected. When users select other projects or login/logout the region will
    stay what the user last selected, and users will try to be returned to the last used
    project

    Change-Id: I8b38ab2cb8b616ad6976aa8167b8209926054df4
    Closes-Bug: 1357047
    Closes-Bug: 1389401

Changed in django-openstack-auth:
status: In Progress → Fix Committed
David Lyle (david-lyle)
Changed in django-openstack-auth:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.