Project

General

Profile

Bug #5638

Make Katello api error rendering consistent with Foreman's

Added by dustin tsang about 5 years ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Difficulty:
hard
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Right now a lot the error messages are rendered differently across Foreman and Katello's APIs
Also, the use of the attribute displayMessage should be limited to the candlepin_proxies_controller where we need to return messages to RHSM in the specific format that it requires.

Forman: https://github.com/theforeman/foreman/blob/develop/app/controllers/api/v2/base_controller.rb#L73
Katello: https://github.com/Katello/katello/blob/master/app/lib/katello/api/v2/error_handling.rb (respond_for_exception method).

So that the api errors are presented consistently across Foreman/Katello, It would be ideal for Katello to share rendering code.

History

#1 Updated by Eric Helms about 5 years ago

  • Target version set to 45
  • Triaged changed from No to Yes

#2 Updated by Eric Helms about 5 years ago

  • Target version changed from 45 to 49

#3 Updated by Eric Helms almost 5 years ago

  • Target version changed from 49 to 54

#4 Updated by Eric Helms almost 5 years ago

  • Bugzilla link set to 1125401

#5 Updated by Eric Helms almost 5 years ago

  • Target version deleted (54)

#6 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF