Project

General

Profile

Actions

Bug #32536

closed

API - ISE when using invalid status type

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

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

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

Actions #1

Updated by The Foreman Bot almost 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
Actions #2

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases 3.0.0 added
Actions #3

Updated by yifat makias almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Tomer Brisker almost 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
Actions #5

Updated by The Foreman Bot almost 3 years ago

  • Pull request https://github.com/theforeman/foreman/pull/8591 added
Actions #6

Updated by Tomer Brisker almost 3 years ago

  • Fixed in Releases 2.5.1 added
Actions

Also available in: Atom PDF