Some routers fail to expand in Network Explorer

Bug #1403066 reported by Morten Brekkevold
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Morten Brekkevold

Bug Description

Under NAV 4.2.1 (and possibly back to 4.0), not all routers will expand when the adjacent plus icon is clicked in Network Explorer.

For the end user, the symptom is that the plus icon changes into a spinner icon that never stops. Opening the browser developer tools show that an AJAX request is failing in a 500 Internal Server Error, which is not being reported back to the end user.

The traceback mailed from Django to the site admin looks like this:

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/", line 109, in get_response response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/", line 48, in view return self.dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/", line 69, in dispatch return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/", line 99, in get context = self.get_context_data(object=self.object)
File "/usr/lib/python2.7/dist-packages/nav/web/networkexplorer/", line 99, in get_context_data 'trunk_port': gwport.to_interface.trunk,
AttributeError: 'NoneType' object has no attribute 'trunk'

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Seems like a simple failure to verify that an interface's neighboring interface is actually known (sometimes the neigboring device is known, but not the interface of the neighboring device). Should be a relatively easy fix.

Changed in nav:
status: Confirmed → In Progress
Revision history for this message
Morten Brekkevold (mbrekkevold) 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.