Project

General

Profile

Bug #26183

Compute resource API returns 500 for unknown provider string

Added by Marek Hulán 4 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

E.g. if I try to create libvirt compute resouce through API, specifying Libvirt as a provider results in 500 if I don't have foreman-libvirt installed. I'd expect to get 422 as a response.

Associated revisions

Revision 52b80095 (diff)
Added by Marek Hulán 4 months ago

Fixes #26183 - respond with 422 to invalid CR request

History

#1 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6518 added

#2 Updated by Tomer Brisker 4 months ago

  • Fixed in Releases 1.22.0 added

#3 Updated by Marek Hulán 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker about 2 months ago

  • Subject changed from Compute resource API returns 500 for uknown provider string to Compute resource API returns 500 for unknown provider string

Also available in: Atom PDF