Problem: UMC modules crash when opening

Problem: Users opening a module in the UMC are getting errors / tracebacks like this one:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tornado/web.py", line 1595, in _execute
    result = yield result
  File "/usr/lib/python3/dist-packages/tornado/gen.py", line 1133, in run
    value = future.result()
  File "/usr/lib/python3/dist-packages/univention/management/console/resources.py", line 734, in get
    headers = self.get_request_header(session, methodname, umcp_command)
  File "/usr/lib/python3/dist-packages/univention/management/console/resources.py", line 794, in get_request_header
    headers['Authorization'] = 'basic ' + base64.b64encode(('%s:%s' % (session.user.username, session.get_umc_password())).encode('ISO8859-1')).decode('ASCII')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u20ac' in position 19: ordinal not in range(256)

This is a bug related to using the ‘€’ symbol in a users password. The users password has to be changed and not incorporate the ‘€’ symbol.

This topic was automatically closed after 24 hours. New replies are no longer allowed.

Mastodon