Prefix matrix crashes when viewing IPv6 scope

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

Bug Description

When attempting to view our IPv6 scope (2001:700:1:/48) in the Prefix Matrix under NAV 3.5.5, the page crashes with the following traceback:


ProcessId: 541
Interpreter: ''

ServerName: ''
DocumentRoot: '/usr/share/nav/htdocs'

URI: '/report/matrix'
Location: None
Directory: '/usr/share/nav/htdocs/report/'
Filename: '/usr/share/nav/htdocs/report/matrix'
PathInfo: ''

Phase: 'PythonHandler'
Handler: ''

Traceback (most recent call last):

  File "/usr/lib/python2.5/site-packages/mod_python/", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.5/site-packages/mod_python/", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.5/site-packages/mod_python/", line 1128, in _execute_target
    result = object(arg)

  File "/var/lib/python-support/python2.5/nav/web/report/", line 167, in handler
    matrix = MatrixIPv6(scope,end_net=end_net)

  File "/var/lib/python-support/python2.5/nav/report/", line 45, in __init__

  File "/var/lib/python-support/python2.5/nav/report/", line 50, in __init__
    self.tree = buildTree(start_net, end_net, bits_in_matrix=bits_in_matrix, add_missing_nets=True)

  File "/var/lib/python-support/python2.5/nav/report/", line 71, in buildTree
    supernet = andIpMask(ip,mask)

  File "/var/lib/python-support/python2.5/nav/report/", line 197, in andIpMask
    return _ipv6_andIpMask(ip,mask)

  File "/var/lib/python-support/python2.5/nav/report/", line 206, in _ipv6_andIpMask
    assert len(ip_split) == len(mask_split) == 8


Changed in nav:
assignee: nobody → Jørgen Abrahamsen (jorabra)
Changed in nav:
assignee: Jørgen Abrahamsen (jorabra) → nobody
Changed in nav:
milestone: 3.5.7 → 3.7.2
Changed in nav:
milestone: 3.7.2 → 3.7.3
Changed in nav:
assignee: nobody → Morten Brekkevold (mbrekkevold)
status: Confirmed → In Progress
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

fix committed here:

The failing assertion could only ever have worked when all IPv6 addresses could not be shortened to less than 8 hex groups - really surprised that issue wasn't discovered immediately after the IPv6 functionality was introduced.

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  Edit
Everyone can see this information.

Other bug subscribers