Bug 46095

Summary: udm/object/policies users/user: KeyError: 'username'
Product: UCS Reporter: Johannes Keiser <keiser>
Component: UMC - UsersAssignee: UMC maintainers <umc-maintainers>
Status: RESOLVED DUPLICATE QA Contact: UMC maintainers <umc-maintainers>
Severity: normal    
Priority: P5 CC: best
Version: UCS 4.2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
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?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: 2019031721000595, 2017122521000119 Bug group (optional): Error handling, External feedback
Max CVSS v3 score:

Description Johannes Keiser univentionstaff 2018-01-19 17:51:46 CET
Version: 4.2-2 errata222 (Lesum)

Execution of command 'udm/object/policies users/user' has failed:

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 1148, in _thread
    policy_obj.clone(obj)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 2981, in clone
    self.copyIdentifier(referring_object)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 2969, in copyIdentifier
    self.info[key2] = from_object.info[key]
KeyError: 'username'
Comment 1 Johannes Keiser univentionstaff 2019-03-22 13:00:19 CET
Reported again: Version: 4.4-0 errata0 (Blumenthal)

Remark: LDAP Base: o=foo,o=bar

Interner Server-Fehler in "udm/object/policies (navigation)".
Request: udm/object/policies (navigation)

  File "%PY2.7%/notifier/threads.py", line 78, 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 1182, in _thread
    policy_obj.clone(obj)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 3337, in clone
    self.copyIdentifier(referring_object)
  File "%PY2.7%/univention/admin/handlers/__init__.py", line 3325, in copyIdentifier
    self.info[key2] = from_object.info[key]
KeyError: 'name'

Role: domaincontroller_master
Comment 2 Florian Best univentionstaff 2019-03-22 13:11:57 CET
This has been fixed at Bug #47377.

*** This bug has been marked as a duplicate of bug 47377 ***