Actions
Bug #18779
openAPI organization_id can only be numeric
Description
In paths like 'api/v2/organizations/:organization_id/products', or 'api/v2/products?organization_id=:organization_id' when you try to use a name (e.g "ACMECORP") as the organization id, Foreman returns a 404.
However, the organization_id can be a name in most Foreman API paths and 'katello/api/v2/organizations/:organization_id'.
The problem is that the API controller is only searching by ID, but it should use the 'friendly' scope provided by 'friendly_id' to search by both name/label/id.
Updated by Daniel Lobato Garcia about 8 years ago
- Assignee set to Daniel Lobato Garcia
I actually have a fix for this already so just let me submit the patch :)
Updated by The Foreman Bot about 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/6645 added
Updated by The Foreman Bot about 8 years ago
- Pull request https://github.com/Katello/katello/pull/6648 added
Updated by Stephen Benjamin about 8 years ago
- Pull request deleted (
https://github.com/Katello/katello/pull/6648)
Updated by Justin Sherrill about 8 years ago
- Translation missing: en.field_release set to 211
Updated by Justin Sherrill about 8 years ago
- Translation missing: en.field_release changed from 211 to 114
Actions