Univention Bugzilla – Bug 55355
Allow arbitrary context types in ucsschool lib
Last modified: 2023-05-26 10:57:44 CEST
## Story As an administrator of a UCS@school domain I can attach arbitrary roles with custom context types to my school objects, so that I can implement custom logic. ## Context/description Currently the school lib throws errors if a school object has roles that do not have the context type `school` or `exam`. The lib also checks some additional requirements, like the use of only defined role names. In reality we want the following situation though: - If a role with the context type school or exam is used, we want to enforce all current rules and throw errors as before - Any other role string, which has an unknown context type, is allowed and will simply be ignored. - All role strings still have to follow the triple segment syntax (role:context_type:context) Additional points: - This has to be changed both in host ucsschool lib and kelvin! - This affects the get_role_info and create_role_string function in the ucsschool lib ## Acceptance criteria & steps for reproduction - Arbitrary context types are allowed - The Kelvin changes are available at least in the test appcenter - The changes to ucsschool **have been released** as an errata
Fixed with: Package: ucs-school-lib Version: 13.0.25A~5.0.0.202211031000
Verified, all ok. (Discussion on
some things were missing, reopen
Package: ucs-school-lib Version: 13.0.29A~5.0.0.202211141125 Branch: ucs_5.0-0 Scope: ucs-school-5.0 Package: ucs-test-ucsschool Version: 7.3.81A~5.0.0.202211141128 Branch: ucs_5.0-0 Scope: ucs-school-5.0
OK - ucsschool-lib (13.0.29) OK - tests OK - yaml
Errata updates for UCS@school 5.0 v3 have been released. https://docs.software-univention.de/ucsschool-changelog/5.0v3/de/changelog.html If this error occurs again, please clone this bug.