Actions
Bug #32536
closedAPI - ISE when using invalid status type
Difficulty:
Triaged:
No
Bugzilla link:
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1852897
Description of problem:
"/api/hosts/:id/status" endpoints have been removed in bug 1791656. They were replaced by "/api/hosts/:id/status/:type" where type is either "configuration" or "build". When anything other is used for type, ISE occurs.
Version-Release number of selected component (if applicable):
Sat 6.8 snap 6.0.
How reproducible:
Deterministic
Steps to Reproduce:
1. # curl -H "Content-Type:application/json" -X GET -k -u admin:<password> https://<fqdn>/api/hosts/1/status/nonexistent
{"status":500,"error":"Internal Server Error"}
Actual results:
ISE
Expected results:
Sanely handled error or 404
Actions