Bug #2855
closed
API authentication controller does not fail gracefully
Added by Daniel Lobato Garcia over 11 years ago.
Updated over 6 years ago.
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)
- Category set to API
- Target version set to 1.3.0
- Difficulty set to easy
- Is duplicate of Bug #3025: Supplying no HTTP auth credentials results in server error added
- Status changed from New to Duplicate
- Assignee set to Ohad Levy
- Target version changed from 1.3.0 to 1.15.0
- Translation missing: en.field_release set to 2
- Description updated (diff)
- Status changed from Duplicate to Ready For Testing
- Related to Bug #3587: invalid JSON returns 500 server error added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF