Bug 53596 - wrong status code in kelvin-api get
wrong status code in kelvin-api get
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: HTTP-API (Kelvin)
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-07-19 09:57 CEST by Tobias Wenzel
Modified: 2021-07-19 09:59 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.023
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 Tobias Wenzel univentionstaff 2021-07-19 09:57:27 CEST
When making a get on a non-existent school, we get a 422 instead of a 404 

curl -X 'GET' \
  'http://10.200.47.83/ucsschool/kelvin/v1/classes/?school=dummy&name=kaese' ...

{
  "detail": "Unprocessable Entity: {'position': 'LDAP object cn=klassen,cn=schueler,cn=groups,ou=dummy,dc=dc-we,dc=intranet could not be found.\\nIt possibly has been deleted or moved. Please update your search results and open the object again.'}"
}

-> return 404 instead