Bug 69751

Summary: Installing non-RPM file gives cryptic error
Product: [Retired] Red Hat Linux Reporter: Need Real Name <corky6921>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-24 22:46:36 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 2002-07-24 22:46:31 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 
1.0.3705)

Description of problem:
Sometimes HTML files are downloaded in place of RPMs. When you try to install 
these HTML files via rpm -ivh (on the command line), the command fails with a 
cryptic error "read manifest failed: Success". Please change this error 
message to say something more intuitive. Example:

"You have tried to install an invalid RPM file. Please check that your file is 
a valid RPM and try again."

This will prevent confusion of those who don't realize that they have actually 
downloaded an HTML file instead of an RPM file.

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


How reproducible:
Always

Steps to Reproduce:
1. Download a file with the RPM extension that is actually an HTML file. (This 
usually happens unknowingly; hence the confusion.)
2. Install using rpm -i or rpm -ivh from the command line.

Actual Results:  Error: read manifest failed: Success

Expected Results:  The RPM command should have explained the real problem -- 
that the file is not a valid RPM.

Additional info:

Comment 1 Jeff Johnson 2002-08-05 20:12:05 UTC
Fixed (i.e. "not an rpm package (or package manifest)")
in rpm-4.1-0.71. The Success was fixed previously.