Univention Bugzilla – Bug 46819
udm/syntax/choices (users/user): KeyError: 'displayName'
Last modified: 2021-11-24 12:58:25 CET
Interner Server-Fehler in "udm/syntax/choices (users/user)". Request: udm/syntax/choices (users/user) Traceback (most recent call last): File "%PY2.7%/notifier/threads.py", line 82, in _run tmp = self._function() File "%PY2.7%/notifier/__init__.py", line 104, in __call__ return self._function( *tmp, **self._kwargs ) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 933, in _thread return read_syntax_choices(syntax, request.options) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 83, in _decorated return method(*args, **kwargs) File "%PY2.7%/univention/management/console/ldap.py", line 143, in _decorated result = func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 1306, in read_syntax_choices for element in map(map_choice, filter(filter_choice, module.search(filter=filter_s))): File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 1293, in map_choice _choices.append((value, syn.label_format % obj.info)) KeyError: 'displayName'
Reported again: Version: 4.3-0 errata9 (Neustadt) - UCS@school 4.3 v1
Reported again: Version: 4.3-0 errata0 (Neustadt) - UCS@school 4.3 v1
Reported again: Version: 4.3-0 errata0 (Neustadt) - UCS@school 4.3 v1 Remark: diese Meldung trat beim ersten öffnen nach dem update auf
Reported again: Version: 4.3-0 errata28 (Neustadt) - UCS@school 4.3 v3 (Same as Comment #0)
This happens in case a school does not have the displayName Attribute set. Maybe we should add a better error message or ignore the school in that case?
(In reply to Jürn Brodersen from comment #6) > This happens in case a school does not have the displayName Attribute set. > Maybe we should add a better error message or ignore the school in that case? Not easy because it affects every syntax class. We could prevent this tracbeack of course so it returns an empty string but hmmm... I think the reason why this occurrs are the use of legacy scripts which creates schools. Might be better to eliminate these.
This issue has been filed against UCS 4.3. UCS 4.3 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.