Project

General

Profile

Bug #4077

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

Added by Katello Issue Migration almost 7 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
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

History

#1 Updated by Eric Helms over 6 years ago

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

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

#2 Updated by Eric Helms over 6 years ago

  • Triaged changed from No to Yes

#3 Updated by Eric Helms about 6 years ago

  • Legacy Backlogs Release (now unused) set to 13

Also available in: Atom PDF