Rendering a port traffic graph results in a UnicodeEncodeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
Attempting to render a traffic graph for a port that has non-ASCII characters in its ifalias will result in the following traceback:
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
url = get_interface_
File "/usr/lib/
shortname=
UnicodeEncodeError: 'ascii' codec can't encode character u'\xd8' in position 21: ordinal not in range(128)
SNMP is not defined for non-ASCII data, but it can nontheless often be configured on the CLI side, which can result in this.
Changed in nav: | |
status: | Fix Committed → Fix Released |
fix here: https:/ /nav.uninett. no/hg/stable/ rev/baf343e4013 5