Bug 51878 - udm/remove (navigation): KeyError: 'uid' due to "root" removal
udm/remove (navigation): KeyError: 'uid' due to "root" removal
Status: NEW
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-21 12:04 CEST by Christian Castens
Modified: 2020-08-21 12:05 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
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: 2020032421000337
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 Christian Castens univentionstaff 2020-08-21 12:04:47 CEST
Version: 4.4-4 errata499 (Blumenthal)

Remark: removing user "root" (on a foreign VM)

Traceback(d41d8cd98f00b204e9800998ecf8427e):
Interner Server-Fehler in "udm/remove (navigation)".
Request: udm/remove (navigation)

  File "/usr/lib/python2.7/dist-packages/notifier/threads.py", line 80, in _run
    result = self._function()
  File "/usr/lib/python2.7/dist-packages/notifier/__init__.py", line 104, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/__init__.py", line 467, in _thread
    module.remove(ldap_dn, options.get('cleanup', False), options.get('recursive', False))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 598, in remove
    obj.remove(remove_childs=recursive)
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 878, in remove
    return self._remove(remove_childs)
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/__init__.py", line 1532, in _remove
    self._ldap_post_remove()
  File "/usr/lib/python2.7/dist-packages/univention/admin/handlers/users/user.py", line 2123, in _ldap_post_remove
    self.alloc.append(('uid', self.oldattr['uid'][0]))
KeyError: 'uid'

Role: domaincontroller_master