Bug 45344 - (4.1) KeyError: 'school' when trying to remove school class
(4.1) KeyError: 'school' when trying to remove school class
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 4.2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 v13
Assigned To: Florian Best
Daniel Tröder
:
Depends on: 44537 45018
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-07 16:49 CEST by Sönke Schwardt-Krummrich
Modified: 2018-10-15 14:31 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.343
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018092821000707, 2017092121000865, 2017071621000226, 2017082121000205, 2017082121000152, 2017090721000767
Bug group (optional): 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 Sönke Schwardt-Krummrich univentionstaff 2017-09-07 16:49:57 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'
Comment 1 Florian Best univentionstaff 2017-09-08 12:55:17 CEST
Package: ucs-school-umc-wizards
Version: 8.0.2-2.159.201709081253
Comment 2 Daniel Tröder univentionstaff 2017-09-08 13:50:44 CEST
OK: manual test on multi-server master
OK: advisory (update build# 21e25e3..af1876d)
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2017-09-12 13:18:21 CEST
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.
Comment 4 Florian Best univentionstaff 2017-10-12 21:14:07 CEST
Version: 4.1-4 errata474 (Vahr)

Remark: Wie kann man falsch angelegte Klassen aus der Klassen-Übersicht löschen?
Comment 5 Johannes Keiser univentionstaff 2018-10-15 14:31:23 CEST
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'