Bug #32536
API - 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
Associated revisions
History
#1
Updated by The Foreman Bot almost 2 years ago
- Assignee set to yifat makias
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/8561 added
#2
Updated by The Foreman Bot almost 2 years ago
- Fixed in Releases 3.0.0 added
#3
Updated by yifat makias almost 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|dc82c65c535ac0cd405345dd7fa36e64912370d9.
#4
Updated by Tomer Brisker almost 2 years ago
- Target version set to 2.5.1
- Subject changed from API - ISE when using invalid status type to API - ISE when using invalid status type
#5
Updated by The Foreman Bot almost 2 years ago
- Pull request https://github.com/theforeman/foreman/pull/8591 added
#6
Updated by Tomer Brisker almost 2 years ago
- Fixed in Releases 2.5.1 added
Fixes #32536 - add valid error when using invalid status type