Actions
Bug #7306
closedSometimes in the API, we find_by_id and fail when other times we just call find
Updated by Brad Buckingham over 9 years ago
The following is an example where this was observed:
api/v2/packages_controller.rb:
def find_repository
@repo = Repository.find(params[:repository_id])
fail HttpErrors::NotFound, _("Couldn't find repository '%s'") % params[:repository_id] if @repo.nil?
end
api/v2/errata_controller.rb:
def find_repository
@repo = Repository.find(params[:repository_id]) if params[:repository_id]
end
Updated by Eric Helms over 8 years ago
- translation missing: en.field_release set to 114
Updated by John Mitsch over 4 years ago
- Status changed from New to Rejected
- Target version deleted (
Katello Backlog)
Thanks for reporting this issue. This issue was created over 4 years ago and hasn't seen an update in 1 year. We are closing this in an effort to keep a realistic backlog. Please open up a new issue that includes a link to this issue if you feel this still needs to be addressed. We can then triage the new issue and reassess.
Actions