Submitting an empty search form crashes Arnold
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
John-Magne Bredal | ||
3.15 |
Fix Released
|
Medium
|
Unassigned | ||
4.0 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In NAV 3.15 and 4.0, when submitting an empty search form in arnold (/arnold/search), the page crashes with a TypeError.
Traceback looks like this under NAV 3.15:
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
if form.is_valid():
File "/usr/lib/
return self.is_bound and not bool(self.errors)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
IP(searchvalue)
File "/usr/lib/
raise TypeError(
TypeError: Unsupported data type: <type 'NoneType'>
Changed in nav: | |
status: | Confirmed → In Progress |
Changed in nav: | |
status: | Fix Committed → Fix Released |
Fix for 4.0: https:/ /nav.uninett. no/hg/stable/ rev/e44f34773b0 1
Fix for 3.15: https:/ /nav.uninett. no/hg/stable/ rev/4ddedb13d9c e