Bug 246626

Summary: Pass invalid channel errors to rhn-download-manager
Product: [Retired] Red Hat Network Reporter: James Bowes <jbowes>
Component: RHN/BackendAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Stephen Herr <sherr>
Severity: low Docs Contact:
Priority: low    
Version: rhn500CC: bkearney, rhn-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: US=16306
Fixed In Version: 5.0.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-07 20:01:05 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: 433460    

Description James Bowes 2007-07-03 14:16:14 UTC
If rhn-download-manager tries to add downloads to a channel that doesn't exist,
RHN will raise an ISE. instead, report the error back to the client. see also:
http://rbgh.usersys.redhat.com/python/3060fbc706b030fb5867e8867e793be42f8c5ab1

Comment 1 James Bowes 2008-02-26 19:25:39 UTC
To test:
 * get the downloads for a channel:
   rhn-download-manager --server localhost --show-all --list rhel-i386-server-5
-o dls.csv
  * edit the file, remove all but one line (for simplicity), and edit the
channel label to a channel that doesn't exist
  * try and upload the data:
    rhn-download-manager --server localhost --upload dls.csv --no-validation
  * you should get a nicely formatted error message saying the channel is invalid

Comment 2 James Bowes 2008-02-27 17:10:53 UTC
requires rhn-content-mgmt-0.5.0 from brew

Comment 3 Amy Owens 2008-03-03 15:57:04 UTC
AO 3/3/08--verified in dev now get this error message: 
Error Message:
    Invalid channel rhel-amy
Error Class Code: 50
Error Class Info: Invalid information uploaded to the server

Comment 4 Stephen Herr 2008-03-14 19:28:16 UTC
SH 3/14/08--verified in qa. Now get this error message:

Error Message:
    Invalid channel rhel-sherr
Error Class Code: 50
Error Class Info: Invalid information uploaded to the server