Bug 57261 - ucsschool/ldap/noneducational/create/objects=false breaks kelvin school GET
ucsschool/ldap/noneducational/create/objects=false breaks kelvin school GET
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2024-05-07 16:14 CEST by Jürn Brodersen
Modified: 2024-05-07 16:19 CEST (History)
0 users

See Also:
What kind of report is it?: ---
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:


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 :(