The regex for characters in an OU-name and their order is only applied, when an OU is created on a singleserver system. On multiserver systems this allows for invalid OU-names. Make sure the naming restrictions for OU-names are also applied on multiserver systems. This is implemented for ucsschool 5.0 in https://forge.univention.org/bugzilla/show_bug.cgi?id=53506 We also need this for the ucsschool-kelvin-rest-api.
Resolved with merge request https://git.knut.univention.de/univention/components/ucsschool-kelvin-rest-api/-/merge_requests/7 The changes: Removed the "single server"-condition in the ´validate´ method of the SchoolName class, the regex is hence checked regardless of the school server type. Additionally, a new test has been added which checks if the expected exception is raised if an invalid school name used.
QA review done on mr + gitlab issue all ok: verify
Released with 1.5.5 -> closing this issue.