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 796268

Summary: errata info failure - 756: unexpected token at 'null'
Product: Red Hat Satellite Reporter: Tomas Strachota <tstrachota>
Component: katello-agentAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: jrist, sghai
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 20:54:59 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:

Description Tomas Strachota 2012-02-22 15:22:41 UTC
Description of problem:
Executing errata info with non-existing id results in error:
756: unexpected token at 'null'

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

Additional info:
Very similar problem as in bug 786438.

Comment 2 Tomas Strachota 2012-02-22 16:38:42 UTC
Testing scenario:
1) create product and repo
2) sync the repo
3) try to get info about erratum that does not exist

Comment 3 Sachin Ghai 2012-03-20 07:42:48 UTC
Verified with following CFSE build:

[root@perceptor ~]# rpm -qa | grep -ie katello-0 -ie katello-cli-0
katello-0.1.304-1.el6.noarch
katello-cli-0.1.105-1.el6.noarch
[root@perceptor ~]# 

katello> errata list --org sghai
--------------------------------------------------------------------------------
                                  Errata List

 Id               Title             Type      
--------------------------------------------------------------------------------
 RHEA-2012:0002   Sea_Erratum       security  
 RHEA-2012:0003   Bird_Erratum      security  
 RHEA-2012:0001   Bear_Erratum      security  
 RHEA-2012:0004   Gorilla_Erratum   security  


katello> errata info --id RHEA-2012:0002 --repo "Zoo Enterprise x86_64 6.0" --org sghai --product "Zoo Enterprise"
--------------------------------------------------------------------------------
                               Errata Information
--------------------------------------------------------------------------------

Id:                RHEA-2012:0002
Title:             Sea_Erratum
Description:
    Sea_Erratum
Type:              security
Issued:            2012-01-27 16:08:06
Updated:           
Version:           1
Release:           1
Status:            stable
Reboot Suggested:  False
Affected Packages:
    walrus-0.71-1.noarch.rpm
    penguin-0.9.1-1.noarch.rpm
    shark-0.1-1.noarch.rpm

A proper error message is displayed in case errata id doesn't exist.

katello> errata info --id RHEA-2010:0002 --repo "Zoo Enterprise x86_64 6.0" --org sghai --product "Zoo Enterprise"
Erratum with id 'RHEA-2010:0002' not found