Bug 796268 - errata info failure - 756: unexpected token at 'null'
Summary: errata info failure - 756: unexpected token at 'null'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-22 15:22 UTC by Tomas Strachota
Modified: 2019-09-26 17:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 20:54:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.