Actions
Bug #2855
closedAPI authentication controller does not fail gracefully
Description
This controller (api/services/api/authorization) gives you the option of using OAuth or http basic. If http basic is used but no username/password are set, foreman returns a 500 when it tries to authenticate the API request.
Processing by Api::V1::HostsController#show as JSON
Parameters: {"id"=>"host.domain.com", "host"=>{}}
invalid byte sequence in UTF-8 (ArgumentError)
Added by Ohad Levy over 11 years ago
Actions
fixes #3587, #2855 - print an error on invalid json vs 500 error