← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1659818] Re: No user_home when session is expired

 

Reviewed:  https://review.openstack.org/426214
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a2386d80fbbff2cd3ab3814cd850a8471280dde8
Submitter: Jenkins
Branch:    master

commit a2386d80fbbff2cd3ab3814cd850a8471280dde8
Author: Fredrik Starkenberg <starkenbergfredrik@xxxxxxxxx>
Date:   Fri Jan 27 12:27:39 2017 +0000

    Check if user.token attribute exists
    
    If the user is admin or don't have an ID the identity panel
    will be loaded. In any other case  the project panel will be loaded.
    This will also check if the panel is unregistred, and if the
    session has expired it will lead to the login screen.
    
    Closes-Bug: #1659818
    Change-Id: I27300e928855ec10ca5d2a623d636e50d756b698


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
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/1659818

Title:
  No user_home when session is expired

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Steps to reproduce:
  Login and wait for you session to expire (or delete the sessionid cookie).
  Press the Openstack logo up in the left corner (/dashboard/home/).
  And you get:
  AttributeError at /home/
  'AnonymousUser' object has no attribute 'token'

  Problem is line 40 in openstack_dashboard/views.py.
  The attribute user.token doesn't exist since the session has expired.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1659818/+subscriptions


References