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)
Updated by Lukas Zapletal over 11 years ago
- Category set to API
- Target version set to 1.3.0
- Difficulty set to easy
Updated by Lukas Zapletal over 11 years ago
- Is duplicate of Bug #3025: Supplying no HTTP auth credentials results in server error added
Updated by Dominic Cleal about 11 years ago
- 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
Oops, I set both to duplicate.
Ohad's addressed it in https://github.com/theforeman/foreman/pull/1003 so it returns a 401.
Updated by Dominic Cleal about 11 years ago
- Related to Bug #3587: invalid JSON returns 500 server error added
Updated by Ohad Levy about 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset b18c3a35f7101a4abac2166fafc4d0fd75e283e2.
Actions