← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1831960] Re: Horizon plugin: 'AnonymousUser' object has no attribute 'project_id'

 

[Expired for OpenStack Dashboard (Horizon) because there has been no
activity for 60 days.]

** Changed in: horizon
       Status: Incomplete => Expired

-- 
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):
  Expired

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


References