Univention Bugzilla – Bug 45344
(4.1) KeyError: 'school' when trying to remove school class
Last modified: 2018-10-15 14:31:23 CEST
This has to be backported to UCS@school 4.1 R2 +++ This bug was initially created as a clone of Bug #45018 +++ Version: 4.2-1 errata96 (Lesum) - UCS@school 4.2 v2 Remark: erstellte Klassen können nicht gelöscht werden Die Ausführung des Kommandos schoolwizards/classes/remove schoolwizards/classes ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 249, 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%/univention/management/console/modules/schoolwizards/__init__.py", line 122, in _decorated ret = func(self, request, *a, **kw) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 145, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 253, in _delete_obj for obj in iter_objects_in_request(request, ldap_user_write, True): File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 103, in iter_objects_in_request obj_props['name'] = '%s-%s' % (obj_props['school'], obj_props['name']) KeyError: 'school'
Package: ucs-school-umc-wizards Version: 8.0.2-2.159.201709081253
OK: manual test on multi-server master OK: advisory (update build# 21e25e3..af1876d)
UCS@school 4.1 R2 v13 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v13-de.html If this error occurs again, please clone this bug.
Version: 4.1-4 errata474 (Vahr) Remark: Wie kann man falsch angelegte Klassen aus der Klassen-Übersicht löschen?
Reported again: Version: 4.1-5 errata489 (Vahr) Remark: löschen Klasse Die Ausführung des Kommandos schoolwizards/classes/remove schoolwizards/classes ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 281, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 190, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 122, in _decorated ret = func(self, request, *a, **kw) File "%PY2.7%/ucsschool/lib/schoolldap.py", line 145, in wrapper_func return func(*args, **kwargs) File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 253, in _delete_obj for obj in iter_objects_in_request(request, ldap_user_write, True): File "%PY2.7%/univention/management/console/modules/schoolwizards/__init__.py", line 103, in iter_objects_in_request obj_props['name'] = '%s-%s' % (obj_props['school'], obj_props['name']) KeyError: 'school'