yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #78788
[Bug 1831960] [NEW] Horizon plugin: 'AnonymousUser' object has no attribute 'project_id'
Public bug reported:
I am trying to port a Horizon plugin to support Stein version of
openstack horizon(15.0.0).
once the session is expired and i try to reload the page, i am facing
AttributeError saying ''AnonymousUser' object has no attribute
'project_id'' instead of redirecting to login page.
i have captured the log here: http://paste.openstack.org/show/752620/
on further debugging, i see the file "/usr/share/openstack-
dashboard/openstack_dashboard/templatetags/context_selection.py" trying
to access "request.user" attributes which are no longer present when the
session is expired.
please let me know if any more information is required.
** Affects: horizon
Importance: Undecided
Status: New
** Tags: horizon-core python3
--
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/1831960
Title:
Horizon plugin: 'AnonymousUser' object has no attribute 'project_id'
Status in OpenStack Dashboard (Horizon):
New
Bug description:
I am trying to port a Horizon plugin to support Stein version of
openstack horizon(15.0.0).
once the session is expired and i try to reload the page, i am facing
AttributeError saying ''AnonymousUser' object has no attribute
'project_id'' instead of redirecting to login page.
i have captured the log here: http://paste.openstack.org/show/752620/
on further debugging, i see the file "/usr/share/openstack-
dashboard/openstack_dashboard/templatetags/context_selection.py"
trying to access "request.user" attributes which are no longer present
when the session is expired.
please let me know if any more information is required.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1831960/+subscriptions
Follow ups