Machine tracker crashes on partial subnet search
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Christian Strand Young |
Bug Description
When searching for the IP address range string "10.0.0/", Machine Tracker (NAV 3.12) crashes with the following traceback:
Environment:
Request Method: GET
Request URL: http://
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['nav.django']
Installed Middleware:
('django.
Traceback:
File "/usr/lib/
100. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/
49. return ip_do_search(
File "/usr/local/
69. if form.is_valid():
File "/usr/lib/
121. return self.is_bound and not bool(self.errors)
File "/usr/lib/
112. self.full_clean()
File "/usr/lib/
267. self._clean_
File "/usr/lib/
287. value = getattr(self, 'clean_%s' % name)()
File "/usr/local/
50. data = iprange.
File "/usr/local/
235. start, stop = cls._parse(
File "/usr/local/
243. return cls._parse_
File "/usr/local/
283. mask = cls.get_
File "/usr/local/
10. prefix_address = prefix.net_address
Exception Type: AttributeError at /machinetracker/ip/
Exception Value: 'NoneType' object has no attribute 'net_address'
Changed in nav: | |
status: | Confirmed → In Progress |
milestone: | none → 3.12.4 |
Changed in nav: | |
status: | Fix Committed → Fix Released |
Pull request here: https:/ /bitbucket. org/mbrekkevold /nav-mirror/ pull-request/ 18/machine- tracker- no-longer- crashes- when/diff