Bug 57988 - Wrong maxItems for policies in openapi schema
Summary: Wrong maxItems for policies in openapi schema
Status: CLOSED FIXED
Alias: None
Product: UCS
Classification: Unclassified
Component: UDM - REST API
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: UCS 5.2-1-errata
Assignee: Florian Best
QA Contact: Johannes Lohmer
URL: https://git.knut.univention.de/univen...
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-24 15:47 CET by Jürn Brodersen
Modified: 2025-04-09 15:41 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
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):
Customer ID:
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 Jürn Brodersen univentionstaff 2025-02-24 15:47:58 CET
Wrong maxItems for policies in openapi schema

https://git.knut.univention.de/univention/ucs/-/blob/5.2-0/management/univention-directory-manager-rest/src/univention/admin/rest/openapi.py?ref_type=heads#L997

We have one exception were you can have multiple policies of the same type linked to an object: ucr policies.

Failing test:
https://git.knut.univention.de/univention/ucsschool/-/issues/1065

These two policies are added to the ldap base in our school test scenario:
['cn=ucsschool-ucr-settings,cn=config-registry,cn=policies,dc=ucs,dc=test', 'cn=send_self_service_invitation,cn=policies,dc=ucs,dc=test']
Comment 3 Florian Best univentionstaff 2025-04-02 13:26:42 CEST
I also saw the test case fail due to this error.

maxItems for policies/registry now has been set to 100 entries.

univention-directory-manager-rest.yaml
297eabc3061f | fix(openapi): allow multiple UCR policies in maxItems of openapi schema definition

univention-directory-manager-rest (12.1.0)
297eabc3061f | fix(openapi): allow multiple UCR policies in maxItems of openapi schema definition
Comment 4 Johannes Lohmer univentionstaff 2025-04-02 15:10:54 CEST
code-review ok
errata-yaml ok
reproduced ok
fixed ok
packagebuid ok
Comment 5 Felix Botner univentionstaff 2025-04-09 15:41:21 CEST
<https://errata.software-univention.de/#/?erratum=5.2x64>