AttributeError at /status/ - nav-3.6.0b6

Bug #648658 reported by macrom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Medium
Magnus Eide

Bug Description

NAV : 3.6.0b6
OS : RHEL 5.5

The status page failes to load, and with django debug turned on, this is the error message :
AttributeError at /status/
'AlertHistory' object has no attribute 'name'Request Method: GET
Request URL: https://nav.tld.no/status/
Exception Type: AttributeError
Exception Value: 'AlertHistory' object has no attribute 'name'
Exception Location: /usr/local/nav/lib/python/nav/web/status/sections.py in fetch_history, line 473
Python Executable: /usr/bin/python
Python Version: 2.4.3
Python Path: ['/usr/lib/python2.4/site-packages/pyrad-1.1-py2.4.egg', '/usr/lib/python2.4/site-packages/Twisted-8.1.0-py2.4-linux-i686.egg', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0', '/usr/local/nav/lib/python', '/usr/local/nav/apache/webroot/status']
Server time: Mon, 27 Sep 2010 11:48:55 +0200
---------------
Traceback :
Environment:

Request Method: GET
Request URL: https://nav.tld.no/status/
Django Version: 1.0.2 final
Python Version: 2.4.3
Installed Applications:
['nav.django']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.common.CommonMiddleware')

Traceback:
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
  86. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/nav/lib/python/nav/web/status/views.py" in status
  43. sections = get_user_sections(account)
File "/usr/local/nav/lib/python/nav/web/status/sections.py" in get_user_sections
  91. section.fetch_history()
File "/usr/local/nav/lib/python/nav/web/status/sections.py" in fetch_history
  473. row = (

Exception Type: AttributeError at /status/
Exception Value: 'AlertHistory' object has no attribute 'name'

Magnus Eide (m-eide)
Changed in nav:
assignee: nobody → Magnus Eide (m-eide)
Magnus Eide (m-eide)
Changed in nav:
status: New → In Progress
Changed in nav:
milestone: none → 3.6.0
importance: Undecided → Medium
Revision history for this message
Magnus Eide (m-eide) wrote :
Changed in nav:
status: In Progress → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
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.