Project

General

Profile

Actions

Bug #4077

closed

Empty collections in the API return an Error message to the user

Added by Katello Issue Migration over 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

If you attempt to access an valid API endpoint for a collection (e.g. api/providers or products) and the collection is empty, the user is presented with an error message seen below. This is the same error message shown if a user attempts to access an non-existent entity (e.g. api/foo/bar). SInce this is a collection in the API, the user should be presented with an empty list and not an error.

{
displayMessage: "Resource not found on the server",
errors: [
"Not found"
]
}

Created: ehelms on June 17, 2013 15:46 +00:00
Imported from https://api.github.com/repos/Katello/katello/issues/2505

Actions #1

Updated by Eric Helms almost 10 years ago

  • Status changed from New to Closed
  • Triaged set to No

Resolved as part of enginification and congruence of Foreman and Katello APIs.

Actions #2

Updated by Eric Helms almost 10 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF