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

Also available in: Atom PDF