Page MenuHomeVyOS Platform

Using a unicode character in the description field causes UnicodeDecodeError in configsource.py
Open, NormalPublic

Description

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/nat.py", line 273, in <module>
    c = get_config()
  File "/usr/libexec/vyos/conf_mode/nat.py", line 167, in get_config
    conf = Config()
  File "/usr/lib/python3/dist-packages/vyos/config.py", line 84, in __init__
    self._config_source = ConfigSourceSession(session_env)
  File "/usr/lib/python3/dist-packages/vyos/configsource.py", line 132, in __init__
    session_config_text = self._run([self._cli_shell_api, '--show-working-only', '--show-show-defaults', '--show-ignore-edit', 'showConfig'])
  File "/usr/lib/python3/dist-packages/vyos/configsource.py", line 164, in _run
    return out.decode('ascii')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 82502: ordinal not in range(128)

Example character that causes this error: š

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202008301049
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)