Project

General

Profile

Bug #32536

API - ISE when using invalid status type

Added by Ondřej Ezr almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inventory
Target version:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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://&lt;fqdn&gt;/api/hosts/1/status/nonexistent {"status":500,"error":"Internal Server Error"}

Actual results:
ISE

Expected results:
Sanely handled error or 404

Associated revisions

Revision dc82c65c (diff)
Added by yifat makias almost 2 years ago

Fixes #32536 - add valid error when using invalid status type

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

#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

Also available in: Atom PDF