Univention Bugzilla – Bug 45018
KeyError: 'school' when trying to remove school class
Last modified: 2017-09-22 16:56:34 CEST
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'
Same problem for 4.1-4 errata 442 + UCS@school R2 v12 at customer.
Regression by Bug #44537 svn r79380.
Version: 4.2-1 errata139 (Lesum) - UCS@school 4.2 v2 Remark: Klasse gesucht, ausgewählt, Löschen angewählt -> Fehlermeldung
ucs-school-umc-wizards (9.0.5-4): r82390 | Bug #45018: fix removing school classes; regression from svn r79380. ucs-school-umc-wizards.yaml: r82390 | Bug #45018: fix removing school classes; regression from svn r79380.
OK: manual test on multi-server master OK: manual test on single-master OK: advisory
UCS@school 4.2 v3 has been released. http://docs.software-univention.de/changelog-ucsschool-4.2v3-de.html If this error occurs again, please clone this bug.