Univention Bugzilla – Bug 47139
Wrong error / unhelpful message from SchoolSanitizer
Last modified: 2023-06-12 15:39:53 CEST
The error message from the SchoolSanitizer (ucs-school-lib/python/schoolldap.py) always returns an error message that no school exists yet, even if a school does exist. Also the return code is set to 503 (Service Unavailable) which to me implies that a service, like LDAP, is not running. Other sanitizer return 422. Checking the input against all possible schools might be to expensive, but at least the error message should be adjusted.
The error message says: " The request did not specify any school. You have to create a school before continuing. Use the "Schools" UMC module to create one. " In which case can you trigger this error message and a school acutally exists? It's a javascript error then.
(In reply to Florian Best from comment #1) > The error message says: > " > The request did not specify any school. You have to create a school before > continuing. Use the "Schools" UMC module to create one. > " > > In which case can you trigger this error message and a school acutally > exists? It's a javascript error then. See bug 43080 comment 12 and bug 47140 :) I would argue the sanitizer is used to validate the input and the error message should cover the case that the call was just used wrong as well.
This issue has been filed against UCS@school 4.3 or earlier. UCS 4.3 is out of maintenance and UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.