No user_home when session is expired

Bug #1659818 reported by Fredrik Starkenberg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Fredrik Starkenberg

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.

Changed in horizon:
assignee: nobody → Fredrik Starkenberg (fresta)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Changed in horizon:
milestone: none → next
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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 <email address hidden>
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/430176

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/ocata)

Reviewed: https://review.openstack.org/430176
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a8eae317e1eaa215244679ac8b8f5ebbe2f9ebc7
Submitter: Jenkins
Branch: stable/ocata

commit a8eae317e1eaa215244679ac8b8f5ebbe2f9ebc7
Author: Fredrik Starkenberg <email address hidden>
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
    (cherry picked from commit a2386d80fbbff2cd3ab3814cd850a8471280dde8)

tags: added: in-stable-ocata
Changed in horizon:
milestone: next → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 11.0.0.0rc2

This issue was fixed in the openstack/horizon 11.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.0.0b1

This issue was fixed in the openstack/horizon 12.0.0.0b1 development milestone.

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.