Univention Bugzilla – Bug 51659
redirected to "#module=....:undefined" when logging in with exactly 1 allowed UMC operation
Last modified: 2022-05-12 11:06:40 CEST
A staff user in a UCS@school system has exactly 1 allowed UMC operation "schoolimport-all" from the UMC policy "schoolimport-all". After logging into the UMC, the user is redirected to "/univention/management/#module=schoolimport:undefined" The user can enter the URL of the permitted UMC module "/univention/management/#module=schoolimport::0:" and the module opens successfully. When closing it, a redirect to "/univention/management/#module=schoolimport:undefined" will happen though. When another UMC operation (tested with "schoolgroups-workgroup" and "schoollists-all") is added (to any UMC policy, tested with "ucsschool-umc-staff-default" or "schoolimport-all") this does not happen, and the user gets both UMC modules listed.
This caused bug 51657
*** Bug 51657 has been marked as a duplicate of this bug. ***
There has not been any recent activity on this bug. Has the problem been seen somewhere else as well in the meantime or has its assessment changed?
I think we should check, if this is still an issue with the new school version instead of checking the Bug activity? We implemented a workaround for the customers with this issue, and this is a configuration that might not be overwritten by a newer version. So could be still an issue.
Created attachment 10786 [details] umc-undefined-symptom-patch The attached patch fixes this issue symptomatically, but not at its root. Further research is needed. The UMC Module flavor that is parsed from the stateHash is a String with the value 'undefined' instead of being of type undefined. I wasn't yet able to determine why this is the case. The issue is reproducible in UCS with the UMC operationset diagnostic-all.
Happened again with another customer.
Caused by git:11078028f4055c2f25a916e23a922ce798a135f3 Bug #51185. Fixed with: univention-management-console.yaml 01b7a3d0ead0 | Bug #51659: fix UMC access if only one module without flavor is allowed to be accessed univention-management-console (12.0.12-11) 01b7a3d0ead0 | Bug #51659: fix UMC access if only one module without flavor is allowed to be accessed
OK: code change OK: installation OK: update OK: changelog entry ~OK: advisory OK: functional change OK: package built and installable Tested with 3 different users that were allowed to use 0, 1 or 2 UMC modules. Looks fine to me. Comitted small fix for advisory. [5.0-0] 28e8f4834f Bug #51659: update YAML
<https://errata.software-univention.de/#/?erratum=5.0x83>