Bug #26183
Compute resource API returns 500 for unknown provider string
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
History
#1
Updated by The Foreman Bot about 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6518 added
#2
Updated by Tomer Brisker about 4 years ago
- Fixed in Releases 1.22.0 added
#3
Updated by Marek Hulán about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 52b80095550da2d5d25ac9f40e9ccc52ca6b629b.
#4
Updated by Tomer Brisker almost 4 years ago
- Subject changed from Compute resource API returns 500 for uknown provider string to Compute resource API returns 500 for unknown provider string
Fixes #26183 - respond with 422 to invalid CR request