|Summary:||rpm returns undef when it should probably return (none) for unknown fields|
|Product:||[Retired] Red Hat Linux||Reporter:||jauderho|
|Component:||rpm||Assignee:||Jeff Johnson <jbj>|
|Status:||CLOSED WONTFIX||QA Contact:|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||1999-08-30 23:28:48 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
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).