Page MenuHomeVyOS Platform

Using a non-ASCII character in the description field causes UnicodeDecodeError in configsource.py
Closed, ResolvedPublic

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)
Issue type
Bug (incorrect behavior)

Event Timeline

jjakob triaged this task as Normal priority.
jjakob created this object in space S1 VyOS Public.
erkin renamed this task from Using a unicode character in the description field causes UnicodeDecodeError in configsource.py to Using a non-ASCII character in the description field causes UnicodeDecodeError in configsource.py.Aug 29 2021, 12:47 PM
erkin set Issue type to Bug (incorrect behavior).
erkin removed a subscriber: Active contributors.
jestabro changed the task status from Open to Backport pending.Aug 30 2021, 4:32 PM
jestabro moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
jestabro moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.