Project

General

Profile

Actions

Bug #5215

closed

"bad request" exceptions and their messages are not displayed to hammer user

Added by Thomas McKay about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Foreman commands (obsolete)
Target version:
-
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1088442
Try creating an activation key using the same name/label as another. A generic "400 bad request" message is printed instead of indicating that the name is already in use (the server log contains this message).

Two fixes probably needed:
1. hammer-cli-foreman does not handle bad request
2. hammer-cli-katello should make sure the 'displayMessage' gets used in the error type (and all the others?)
or
katello needs to return json data in the same format as foreman does ('message'?)


Related issues 1 (0 open1 closed)

Has duplicate Katello - Bug #4756: Bad request errors are not properly displayed in the CLIDuplicateDavid Davis03/20/2014Actions
Actions

Also available in: Atom PDF