Bug 761667

Summary: Invalid data for new system name displays JSON error message
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: WebUIAssignee: Tom McKay <tomckay>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:11:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 747354    

Description Og Maciel 2011-12-08 19:45:03 UTC
Description of problem:

If you add an invalid name for a new system, you get the JSON string displayed in the red error dialog.

Version-Release number of selected component (if applicable):

katello-0.1.130-1.git.0.216c0d8.el6.x86_64

How reproducible:


Steps to Reproduce:
1. Click on Systems -> All -> New System
2. Fill out the form, using RHEL 6 Client 1 in the Name field
3. Save it.
  
Actual results:

The (attached) screenshot shows the error message that comes up, displaying the JSON string.

Expected results:

We should display a more user friendly message, preferably stating what the expected data should be.

Additional info:

Comment 1 Tom McKay 2012-01-06 21:40:41 UTC
commit 980bb7d1984a91c2be87cae4c17696f3354068e7
Author: Tom McKay <thomasmckay>
Date:   Fri Jan 6 16:38:13 2012 -0500

    Bug 761667 - Invalid data for new system name displays JSON error message
    https://bugzilla.redhat.com/show_bug.cgi?id=761667
    + Parse displayMessage out of error to display in notice

Comment 2 Tom McKay 2012-01-19 18:39:24 UTC
commit 77b308b11aa6da28bc02a9c904d82fb5cade74a5
Author: Tom McKay <thomasmckay>
Date:   Thu Jan 19 10:52:10 2012 -0500

    761667 - JSON error message from candlepin parsed correctly

Comment 3 Mike McCune 2012-01-26 19:08:19 UTC
mass ON_QA move

Comment 4 Og Maciel 2012-01-27 14:38:18 UTC
Verified on Katello Version: 0.1.198-1.el6