Bug 53710 - [4.4] redirected to "#module=....:undefined" when logging in with exactly 1 allowed UMC operation
[4.4] redirected to "#module=....:undefined" when logging in with exactly 1 a...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-8-errata
Assigned To: Florian Best
Sönke Schwardt-Krummrich
:
Depends on: 51659
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-27 11:58 CEST by Florian Best
Modified: 2021-09-01 17:39 CEST (History)
10 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.429
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020070921000546
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-08-27 11:58:46 CEST
Backport to UCS 4.4

+++ This bug was initially created as a clone of Bug #51659 +++

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.
Comment 1 Florian Best univentionstaff 2021-08-27 12:03:00 CEST
Caused by git:11078028f4055c2f25a916e23a922ce798a135f3 Bug #51185.

univention-management-console.yaml
485d11c735e7 | Bug #53710: fix UMC access if only one module without flavor is allowed to be accessed

univention-management-console (11.0.6-16)
485d11c735e7 | Bug #53710: fix UMC access if only one module without flavor is allowed to be accessed
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2021-08-31 12:57:34 CEST
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.
[4.4-8] f8d028f89b Bug #53710: update YAML