Bug 56169 - udm/query: 'ascii' codec can't decode byte
udm/query: 'ascii' codec can't decode byte
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-20 12:56 CEST by Maximilian Janßen
Modified: 2023-06-20 13:40 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2023052421000301, 2023051821000394, 2023051821000312
Bug group (optional): External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2023-06-20 12:56:43 CEST
There are a lot of bugs for 'utf-8' can't decode, but this uses 'ascii' decoding

Version: 5.0-3 errata668

Error:
Interner Server-Fehler in "udm/query (users/user)".
Request: udm/query (users/user)

Traceback (most recent call last):
  File "%PY3%/notifier/threads.py", line 80, in _run
    result = self._function()
  File "%PY3%/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "%PY3%/univention/management/console/modules/udm/__init__.py", line 615, in _thread
    result = module.search(container, objectProperty, objectPropertyValue, superordinate, scope=scope, hidden=hidden, allow_asterisks=USE_ASTERISKS)
  File "%PY3%/univention/management/console/modules/udm/udm_ldap.py", line 678, in search
    result = self.module.lookup(None, ldap_connection, filter_s, base=container, superordinate=superordinate, scope=scope, sizelimit=sizelimit, **kwargs)
  File "%PY3%/univention/admin/handlers/__init__.py", line 1797, in lookup
    result.append(cls(co, lo, None, dn=dn, superordinate=superordinate, attributes=attrs))
  File "%PY3%/univention/admin/handlers/users/user.py", line 1137, in __init__
    univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes=attributes)
  File "%PY3%/univention/admin/handlers/__init__.py", line 231, in __init__
    oldinfo = self.mapping.unmapValues(self.oldattr)
  File "%PY3%/univention/admin/mapping.py", line 601, in unmapValues
    info[key] = func(oldattr, **kwargs)
  File "%PY3%/univention/admin/handlers/users/user.py", line 893, in unmapDisabled
    unmapPosixDisabled(oldattr) or isPosixLocked(oldattr),
  File "%PY3%/univention/admin/handlers/users/user.py", line 947, in isPosixLocked
    userPassword = oldattr.get('userPassword', [b''])[0].decode('ASCII')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)

Role: domaincontroller_master


0xC3 in utf-8 is used in for example: Ö and Ä