Bug 53715 - [4.4] App Attributes: Rewriting layout for frontend "permanently" alters backend properties
[4.4] App Attributes: Rewriting layout for frontend "permanently" alters back...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC - Users
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-8-errata
Assigned To: Florian Best
Dirk Wiesenthal
:
Depends on: 53714
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-29 08:44 CEST by Florian Best
Modified: 2021-09-01 17:39 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
best: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2021-08-29 08:44:37 CEST
+++ This bug was initially created as a clone of Bug #53714 +++

When the App Attributes are used, the frontend is presenting a slightly different layout than the backend was configured with.

To accomplish this, we generate altered properties in umc-udm/udm_ldap.py. This process may permanently alter the "descriptions" of a UDM module.

This is a problem if udm_ldap.py is used outside of umc-udm AND the process is long-living.

As is the case in the UDM REST API. Creating an object through the API executes the altering code in umc-udm. Subsequent requests now operate on changed "options" for certain attributes.

Fix around line 963:

'options': copy.deepcopy(prop.options),
Comment 1 Florian Best univentionstaff 2021-08-29 09:02:47 CEST
univention-management-console-module-udm.yaml
275f49dc3240 | YAML Bug #53715
9355d000cb5e | Bug #53715: prevent altering of original object options through app options

univention-management-console-module-udm (9.0.15-10)
9355d000cb5e | Bug #53715: prevent altering of original object options through app options
Comment 2 Dirk Wiesenthal univentionstaff 2021-08-30 23:49:12 CEST
Code change: OK
No regressions: OK
YAML: OK