Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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:
Embargoed:
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