Bug 46193 - Error when clicking on users in udm:navigation module
Error when clicking on users in udm:navigation module
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Florian Best
Jannik Ahlers
: interim-2
Depends on: 45842
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-30 11:26 CET by Jannik Ahlers
Modified: 2018-03-14 14:37 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
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:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jannik Ahlers univentionstaff 2018-01-30 11:26:41 CET
Clicking on 'users' in the udm ldap navigator results in the following error:

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

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/notifier/threads.py", line 82, in _run
    tmp = self._function()
  File "/usr/lib/pymodules/python2.7/notifier/__init__.py", line 104, in __call__
    return self._function( *tmp, **self._kwargs )
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/__init__.py", line 1063, in _thread
    for module, obj in list_objects(container, object_type=object_type):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 1047, in list_objects
    yield (module, module.get(dn))
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 82, in _decorated
    return method(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/ldap.py", line 143, in _decorated
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 529, in get
    UDM_Error(exc).reraise()
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/udm/udm_ldap.py", line 519, in get
    obj.open()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/users/user.py", line 1521, in open
    self._load_groups(loadGroups)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/users/user.py", line 1551, in _load_groups
    self['primaryGroup'] = None
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 356, in __setitem__
    raise univention.admin.uexceptions.valueRequired, _('The property %s is required') % self.descriptions[key].short_description
UDM_Error: Ein Wert wird benötigt. Die Eigenschaft Primäre Gruppe wird benötigt.
Comment 1 Florian Best univentionstaff 2018-01-31 11:25:25 CET
The problem here is a not migrated user (uid=sys-idp-user,cn=users,dc=dev2,dc=local) which is detected as users/user while it has no gidNumber.

dn: uid=sys-idp-user,cn=users,dc=dev2,dc=local
uid: sys-idp-user
objectClass: person
objectClass: univentionPWHistory
objectClass: simpleSecurityObject
objectClass: top
objectClass: uidObject
objectClass: univentionObject
userPassword:: e2NyeXB0fSQ2JG5sclBZVWRwSmxnNGJ2TlUkeVBadWpRMXEvUGkzejMuQ0RBV0taLlVSQTlFdWM5Unl1Q0M2SEF5YS4xWlhSSlAyaGl2MU9HbWNVbE1FY0gudzh3UmFoVlZ5L25mZTBrMWIvVUxFRS4=
pwhistory: $6$/U3nwfuxS9SRparM$luhDM8sgzdQQNuO2zlUOdqE9sVEgX.0Yx/H.RQLglcr6b7mvs4194MerSsyhM9W7Wf4LO9oK9gMq6ihwfz7Nb/
sn: idp-user
univentionObjectType: users/user
cn: idp-user
univentionObjectFlag: functional
univentionObjectFlag: hidden
Comment 2 Florian Best univentionstaff 2018-01-31 11:48:54 CET
Broken objects are now simply ignored :-) A traceback is logged.

changelog-4.3-0.xml
21dacfc51366 | Changelog Bug #46193

univention-directory-manager-modules (13.0.15-1)
9effa345e2ad | Bug #46193: raise correct exception (primaryGroup) instead of valueMayNotChange in open()

univention-management-console-module-udm (8.0.3-1)
9d85dbcc14d5 | Bug #46193: make list_users() more robust if there are broken objects.
Comment 3 Jannik Ahlers univentionstaff 2018-01-31 12:13:00 CET
OK: Error doesn't get shown anymore
OK: Exception gets logged into /var/log/univention/management-console-module-udm.log
OK: changelog
Comment 4 Stefan Gohmann univentionstaff 2018-03-14 14:37:42 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".