Univention Bugzilla – Bug 50008
Class assignment at second school returns error
Last modified: 2019-09-26 10:32:45 CEST
When there is a teacher at S1 and S2, while S1 is the primary school, the class assignment at S2 isn't working. Assigned classes aren't displayed and when trying to add an additional class the message appears: ==> /var/log/univention/management-console-module-schoolgroups.log <== 14.08.19 11:45:40.446 MODULE ( PROCESS ) : Die Anfrage enthält keine Schule. Um Fortzufahren, muss zuerst eine Schule erstellt werden, dazu kann das "Schulen"-Modul verwendet werden. ==> /var/log/univention/management-console-web-server.log <== 14.08.19 11:45:40.448 MAIN ( PROCESS ) : CPCommand (192.168.0.247:60304) response status code: 503 14.08.19 11:45:40.448 MAIN ( PROCESS ) : CPCommand (192.168.0.247:60304) response message: Die Anfrage enthält keine Schule. Um Fortzufahren, muss zuerst eine Schule erstellt werden, dazu kann das "Schulen"-Modul verwendet werden. 14.08.19 11:45:40.448 MAIN ( PROCESS ) : CPCommand (192.168.0.247:60304) response result: {u'no_school_found': True} 14.08.19 11:45:40.448 MAIN ( PROCESS ) : CPCommand (192.168.0.247:60304) response error: {u'traceback': None, u'command': u'classes'} ---------------------------------------- Jürn nailed it down to a missing school-attribute in JS; probably due to a missing ComboBox in the class assignment form. It appears the UMC/module didn't realize there are multiple schools.
Is the current top item in the priority list for the next sprint planning.
Notes for me and QA: The very similar teacher assignment module seems to be working fine. Using a domain admin does not throw the error mentioned in comment 0, but neither is the teacher added to the class. Using a school admin for S2 does throw the error.
[4.4 28f80bff9] Bug #50008: Fix class assignment for multi school environments [4.4 8d1c5f6b0] Bug #50008: add tests (teacher/class assignemt) [4.4 5991e117d] Bug #50008: changelog (ucs-school-umc-groups) [4.4 660321921] Bug #50008: changelog (ucs-test-ucsschool) [4.4 7750c1a00] Bug #50008: yaml [4.4 1926436f9] Bug #50008: yaml Successful build Package: ucs-school-umc-groups Version: 9.0.0-1A~4.4.0.201909171127 Branch: ucs_4.4-0 Scope: ucs-school-4.4 Successful build Package: ucs-test-ucsschool Version: 6.0.50A~4.4.0.201909171136 Branch: ucs_4.4-0 Scope: ucs-school-4.4 Note: After consultation with our PO I also made the school visible for classes.
OK: code changes OK: test fails before update and succeeds after the update OK: advisory Extra thumbsup for very nice tests.
UCS@school 4.4 v3 has been released. https://docs.software-univention.de/changelog-ucsschool-4.4v3-de.html If this error occurs again, please clone this bug.