Univention Bugzilla – Bug 50231
Password module crashes if a teacher can not read all class members
Last modified: 2023-12-19 16:01:57 CET
Password module crashes if a teacher can not read all class members In a customer environment a student was still in a class from a school he wasn't a member of any more. If a teacher now tries to open that class he gets a noObject traceback because he can not open that user. Interner Server-Fehler in "schoolusers/query (student)". Request: schoolusers/query (student) Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/base.py", line 260, in execute function.__func__(self, request, *args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "/usr/lib/pymodules/python2.7/ucsschool/lib/schoolldap.py", line 145, in wrapper_func return func(*args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolusers/__init__.py", line 90, in query attr=['givenName', 'sn', 'shadowLastChange', 'shadowMax', 'uid']) File "/usr/lib/pymodules/python2.7/ucsschool/lib/schoolldap.py", line 531, in _users_ldap ldap_objs = ldap_connection.search(search_filter, base=userdn, attr=attr) File "/usr/lib/pymodules/python2.7/univention/admin/uldap.py", line 755, in search raise univention.admin.uexceptions.noObject(_err2str(msg)) noObject: No such object
Reported again: Version: 4.3-5 errata660 (Neustadt) - UCS@school 4.3 v6 Interner Server-Fehler in "schoolusers/query (student)". Request: schoolusers/query (student) Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 253, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 145, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/schoolusers/__init__.py", line 90, in query attr=['givenName', 'sn', 'shadowLastChange', 'shadowMax', 'uid']) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 531, in _users_ldap ldap_objs = ldap_connection.search(search_filter, base=userdn, attr=attr) File "%PY2.7%/univention/admin/uldap.py", line 698, in search raise univention.admin.uexceptions.noObject(_err2str(msg)) noObject: No such object Role: domaincontroller_master
reported again: Version: 4.4-1 errata234 (Blumenthal) - UCS@school 4.4 v3 Traceback(230f9696cfdd958097f2941a291b151c): Interner Server-Fehler in "schoolusers/query (student)". Request: schoolusers/query (student) Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 260, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 181, in _response return function(self, request) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 145, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/schoolusers/__init__.py", line 90, in query attr=['givenName', 'sn', 'shadowLastChange', 'shadowMax', 'uid']) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 531, in _users_ldap ldap_objs = ldap_connection.search(search_filter, base=userdn, attr=attr) File "%PY2.7%/univention/admin/uldap.py", line 755, in search raise univention.admin.uexceptions.noObject(_err2str(msg)) noObject: No such object Role: domaincontroller_slave
Merged and built. Waiting for Jenkins Jobs to verify success.
Fixed with commit 0ca7b82e2b1f2de7e79502d79074d15cf097107a: ucs-school-lib 13.0.42 ucs-school-umc-users 16.0.8
Errata updates for UCS@school 5.0 v4 have been released. https://docs.software-univention.de/ucsschool-changelog/5.0v4/en/changelog.html https://docs.software-univention.de/ucsschool-changelog/5.0v4/de/changelog.html If this error occurs again, please clone this bug.