Prefix matrix crashes when viewing IPv6 scope
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
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:
MOD_PYTHON ERROR
ProcessId: 541
Interpreter: 'nav.uninett.no'
ServerName: 'nav.uninett.no'
DocumentRoot: '/usr/share/
URI: '/report/matrix'
Location: None
Directory: '/usr/share/
Filename: '/usr/share/
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'nav.web.
Traceback (most recent call last):
File "/usr/lib/
default=
File "/usr/lib/
result = _execute_
File "/usr/lib/
result = object(arg)
File "/var/lib/
matrix = MatrixIPv6(
File "/var/lib/
Matrix.
File "/var/lib/
self.tree = buildTree(
File "/var/lib/
supernet = andIpMask(ip,mask)
File "/var/lib/
return _ipv6_andIpMask
File "/var/lib/
assert len(ip_split) == len(mask_split) == 8
AssertionError
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 |
Changed in nav: | |
status: | Fix Committed → Fix Released |
fix committed here: http:// metanav. uninett. no/hg/series/ 3.7.x/rev/ d62d602ba5e3
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.