Bug 45018 - KeyError: 'school' when trying to remove school class
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.2 v3
Assigned To: Florian Best
Daniel Tröder
:
Depends on: 44537
Blocks: 45344
  Show dependency treegraph
 
Reported: 2017-07-17 13:39 CEST by Florian Best
Modified: 2017-09-22 16:56 CEST (History)
4 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?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.257
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017071621000226, 2017082121000205, 2017082121000152, 2017090621000616, 2017090721000696, 2017091321000308, 2017091221000846, 2017090921000352, 2017091321000193, 2017090521000234, 2017083121000599
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 Florian Best univentionstaff 2017-07-17 13:39:29 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'
Comment 1 Michel Smidt 2017-08-08 11:44:38 CEST
Same problem for 4.1-4 errata 442 + UCS@school R2 v12 at customer.
Comment 2 Florian Best univentionstaff 2017-08-08 12:05:15 CEST
Regression by Bug #44537 svn r79380.
Comment 3 Florian Best univentionstaff 2017-08-21 11:21:31 CEST
Version: 4.2-1 errata139 (Lesum) - UCS@school 4.2 v2

Remark: Klasse gesucht, ausgewählt, Löschen angewählt -> Fehlermeldung
Comment 4 Florian Best univentionstaff 2017-08-21 17:27:40 CEST
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.
Comment 5 Daniel Tröder univentionstaff 2017-09-05 09:52:16 CEST
OK: manual test on multi-server master
OK: manual test on single-master
OK: advisory
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2017-09-12 13:17:19 CEST
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.