Bug 97699

Summary: srpm upload message needs to be more user friendly
Product: Red Hat Satellite Proxy 5 Reporter: Need Real Name <aander07>
Component: ServerAssignee: Mihai Ibanescu <mihai.ibanescu>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 420CC: rhn-bugs
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-05 20:23:57 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 Need Real Name 2003-06-19 14:22:09 UTC
I received the following when trying to upload a set of RPMs that included SRPMS
as well:

Connecting to https://xmlrpc.rhn.redhat.com/XP
Traceback (innermost last):
  File "/usr/bin/rhn_package_manager", line 29, in ?
    rhn_package_manager.main()
  File "/var/www/rhns/PackageManager/rhn_package_manager.py", line 92, in main
    upload.uploadHeaders()
  File "/var/www/rhns/PackageManager/uploadLib.py", line 230, in uploadHeaders
    verbose=self.options.verbose, nosig=self.options.nosig)
  File "/var/www/rhns/PackageManager/uploadLib.py", line 352, in _processBatch
    nosig=nosig)
  File "/var/www/rhns/PackageManager/uploadLib.py", line 310, in _processFile
    h = get_header(None, f.fileno(), source)
  File "/var/www/rhns/PackageManager/uploadLib.py", line 509, in get_header
    raise UploadError("Unexpected RPM package type")
PackageManager.uploadLib.UploadError: Unexpected RPM package type

It would be nice if this exception spit out a "hey! you're trying to upload
SRPMS, but you didn't use the right options." message so that I would what to do
about it.

Comment 1 Todd Warner 2003-06-27 23:18:00 UTC
What would really be nice is if the tool simply determined what kind of RPM was
being uploaded and simply changed its behaviour on the fly.

Better error messages would be nice as well.

misa's tool... assigning to him.

Comment 2 Mihai Ibanescu 2004-04-05 20:23:57 UTC
Closing as WONTFIX. Please reopen if important.