Bug 3008

Summary: rpm returns undef when it should probably return (none) for unknown fields
Product: [Retired] Red Hat Linux Reporter: jauderho
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-30 23:28:48 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 jauderho 1999-05-24 17:49:27 UTC
> BTW there is another bug where if an older rpm does not
know about a
> newer field, it returns undef. I think the correct
behavior is for it to
> return "(none)".
>
> I.e. asking an older rpm about URL returns nothing. It
exposed a bug/
> workaround I had to put in to set undef values.
>

for the record the correct behaviour in this case should be
to return "(none)"

Comment 1 Jeff Johnson 2000-10-04 15:10:24 UTC
Returning an explicit "(none)" rather than an error message when querying an
unknown tag
using a legacy version of rpm would confuse two distinct problems
	1) rpm does not know about a tag.
	2) the tag does not exist.
which have different solutions (i.e. 1) is fixed by upgrading rpm, 2) is a
packaging or query option problem).