Bug 46819 - udm/syntax/choices (users/user): KeyError: 'displayName'
udm/syntax/choices (users/user): KeyError: 'displayName'
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-13 12:06 CEST by Johannes Keiser
Modified: 2021-11-24 12:58 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018052921000034, 2021090921000201, 2018031521000368, 2018031621000713, 2018031521000359, 2018040421000912, 2018040421001555, 2019090521000445
Bug group (optional): Error handling, 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 Johannes Keiser univentionstaff 2018-04-13 12:06:01 CEST
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'
Comment 1 Johannes Keiser univentionstaff 2018-04-13 12:10:03 CEST
Reported again: Version: 4.3-0 errata9 (Neustadt) - UCS@school 4.3 v1
Comment 2 Johannes Keiser univentionstaff 2018-04-13 19:14:20 CEST
Reported again: Version: 4.3-0 errata0 (Neustadt) - UCS@school 4.3 v1
Comment 3 Johannes Keiser univentionstaff 2018-04-13 19:17:45 CEST
Reported again: Version: 4.3-0 errata0 (Neustadt) - UCS@school 4.3 v1

Remark: diese Meldung trat beim ersten öffnen nach dem update auf
Comment 4 Johannes Keiser univentionstaff 2018-04-27 17:31:24 CEST
Reported again: Version: 4.3-0 errata0 (Neustadt) - UCS@school 4.3 v1
Comment 5 Johannes Keiser univentionstaff 2018-07-16 15:48:34 CEST
Reported again: Version: 4.3-0 errata28 (Neustadt) - UCS@school 4.3 v3
(Same as Comment #0)
Comment 6 Jürn Brodersen univentionstaff 2018-07-16 18:29:10 CEST
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?
Comment 7 Florian Best univentionstaff 2019-03-01 21:46:38 CET
(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.
Comment 8 Ingo Steuwer univentionstaff 2021-05-14 16:37:52 CEST
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.