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
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to yifat makias
- Pull request https://github.com/theforeman/foreman/pull/8561 added
Updated by yifat makias over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|dc82c65c535ac0cd405345dd7fa36e64912370d9.
Updated by Tomer Brisker over 3 years ago
- Subject changed from API - ISE when using invalid status type to API - ISE when using invalid status type
- Target version set to 2.5.1
Updated by The Foreman Bot over 3 years ago
- Pull request https://github.com/theforeman/foreman/pull/8591 added
Actions