Bug 53171 - Only one ucr-policy connectable at the root
Summary: Only one ucr-policy connectable at the root
Status: RESOLVED DUPLICATE of bug 57046
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC - Policies
Version: UCS 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: UMC maintainers
QA Contact: UMC maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-27 11:26 CEST by Christina Scheinig
Modified: 2024-02-28 14:33 CET (History)
2 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?: 4: Will affect most 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.229
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2021041921000441, 2023120621000321
Bug group (optional): API change, Further conceptual development, Usability
Customer ID: 44145
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christina Scheinig univentionstaff 2021-04-27 11:26:36 CEST
If there is just one ucr policy connected at the root, it is not possible, to connect an other one via UMC. The button NEW ENTRY is not visible by default, when there is just one ucr policy attached, but if you create an other ucr policy and connect it via udm to the root, then you get the NEW ENTRY Button in the UMC and both ucr policys are attached and shown.
After adding an other ucr policy, you can use the UMC now.

Is this a single-value/multi-value Bug?

To add a second ucr policy you can use this command:

udm container/dc modify --dn $(ucr get ldap/base) --policy-reference='cn=office365sync,cn=config-registry,cn=policies,dc=henrichmann,dc=net' --policy-reference='cn=o365debug,cn=config-registry,cn=policies,dc=henrichmann,dc=net'


Expected behaviour would be to have the NEW ENTRY button, even with just one ucr policy attached.
Comment 1 Wolfgang Bayrhof univentionstaff 2023-12-15 14:53:59 CET
This bug was originally reported for UCS 4.4, but it's still reproducible with UCS 5.0-6. 

I have added a ticket describing a major incident caused by an accidentally overwritten policy due to this bug. In that case, a policy was overwritten that removed the ppolicy-overlay environment-wide. That policy was connected to the ou=dc,ou=computers,...

The behavior occurs not only on the root container but on every ou.

The workaround is working but does NOT prevent the situation which can cause serious incidents! A customer cannot expect situations like the described one. The workaround is just helpful afterwards.
Comment 2 Florian Best univentionstaff 2024-02-08 10:27:52 CET
Policies are single value, except for the UCR policy evaluation.
The UDM-CLI can handle it but yes, we didn't cover this for UMC.
I think we should add a flag to policy modules which say whether they are multivalue and then evaluate this in UMC.
The good thing is, that all policies are currently transmitted as lists (in UDM-REST, UMC, etc).
Comment 3 Florian Best univentionstaff 2024-02-28 14:33:37 CET

*** This bug has been marked as a duplicate of bug 57046 ***