Bug 57261 - ucsschool/ldap/noneducational/create/objects=false breaks kelvin school GET
Summary: ucsschool/ldap/noneducational/create/objects=false breaks kelvin school GET
Status: CLOSED FIXED
Alias: None
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
Version: UCS@school 5.0
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Silas Wieberneit
QA Contact: Jürn Brodersen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-07 16:14 CEST by Jürn Brodersen
Modified: 2025-09-02 16:28 CEST (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?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID: 00009
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2024-05-07 16:14:29 CEST
Schools that were created while "ucr set ucsschool/ldap/noneducational/create/objects=false" was set, break GET /ucsschool/kelvin/v1/

Error: 404

{
  "message": "Could not find object of type 'School' with DN 'ou=breakk,dc=school,dc=test'."
}

How to reproduce:
"""
ucr set ucsschool/ldap/noneducational/create/objects=false
/usr/share/ucs-school-import/scripts/create_ou breakk breakk
curl -X 'GET' \
  'http://.../ucsschool/kelvin/v1/schools/' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ...'
"""
Comment 1 Jürn Brodersen univentionstaff 2024-05-07 16:17:48 CEST
"univention-app shell ucsschool-kelvin-rest-api ucr set ucsschool/ldap/noneducational/create/objects=false" does not help :(
Comment 3 Jan-Luca Kiok univentionstaff 2024-05-21 12:02:28 CEST
Workaround: (Re-)create the missing groups via a rerun of the `create_ou` script.
Comment 4 Jürn Brodersen univentionstaff 2025-09-02 16:28:42 CEST
UCS@school Kelvin REST API 3.0.0 has been released.

https://docs.software-univention.de/ucsschool-kelvin-rest-api/changelog.html#v3-0-0-2025-09-02

If this error occurs again, please clone this bug.