Bug 58130 - MulitInput sends empty values to UDM if one subwidget is a CheckBox
Summary: MulitInput sends empty values to UDM if one subwidget is a CheckBox
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - Users
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2-1-errata
Assignee: Dirk Wiesenthal
QA Contact: Christian Castens
URL:
Keywords:
: 58131 (view as bug list)
Depends on: 58129 58131
Blocks:
  Show dependency treegraph
 
Reported: 2025-03-28 14:19 CET by Dirk Wiesenthal
Modified: 2025-04-02 14:10 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 4: Minor Usability: Impairs usability in secondary scenarios
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.091
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2025-03-28 14:19:15 CET
For UCS 5.2

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

If we have a multi value complex syntax, which includes not just string, but also boolean, the MultiInput is rendered with TextBox and CheckBox.

If you have, say, one actual (complex) value on the object and you want to change this one value, UMC will send two values: The actual value and an empty one. Why? Because out of convenience, we always render one more widget group per multi value attribute. And this second, empty widget group is used. Normally, we filter empty values out of the request.

But the CheckBox value does not evaluate to false. Because only an empty string is considered "empty".
Comment 1 Dirk Wiesenthal univentionstaff 2025-03-28 14:29:34 CET
univention-web.yaml
c5323355e10c | Bug #58130: YAML

univention-web (6.0.9-2)
eeca62a05b27 | Bug #58130: Fix for MultiInput not evaluating CheckBox subwidgets to false
Comment 2 Christian Castens univentionstaff 2025-03-31 08:52:58 CEST
*** Bug 58131 has been marked as a duplicate of this bug. ***
Comment 3 Christian Castens univentionstaff 2025-03-31 08:54:13 CEST
OK: advisory
OK: saving empty multiInput complex syntax values that contain booleans no longer causes errors (tested in the UMC user module with the oxDeputyPermissions extended attribute from ox-connector 2.3.0)
Comment 4 Christian Castens univentionstaff 2025-04-02 14:10:01 CEST
<https://errata.software-univention.de/#/?erratum=5.2x54>