device history crashes when viewing weathergoose events

Bug #1422298 reported by John-Magne Bredal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Undecided
John-Magne Bredal

Bug Description

Device History crashes when displaying weathergoose events:

ValueError: too many values to unpack

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 109, in get_response response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/nav/web/devicehistory/views.py", line 109, in devicehistory_view alert_history = fetch_history(selection, form)
File "/usr/lib/python2.7/dist-packages/nav/web/devicehistory/utils/history.py", line 84, in fetch_history selected_types = get_selected_types(form.cleaned_data['eventtype'])
File "/usr/lib/python2.7/dist-packages/nav/web/devicehistory/utils/history.py", line 56, in get_selected_types kind, name = type.split('_')
ValueError: too many values to unpack

Changed in nav:
status: New → In Progress
assignee: nobody → John-Magne Bredal (john-m-bredal)
milestone: none → 4.2.4
Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :

Device History checks event- and alert-types based on some notation involving underscore. Weathergoose events have underscore in the name, and Device History happily splits on it leading to this error.

Fix here: https://nav.uninett.no/hg/stable/rev/6c60a6c0b1fc

Changed in nav:
status: In Progress → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
Changed in nav:
milestone: 4.2.4 → 4.2.5
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.