Bug 450019

Summary: System.isNvreInstalled API call broken if epoch is not included
Product: [Retired] Red Hat Network Reporter: Stephen Herr <sherr>
Component: RHN/BackendAssignee: Sebastian Skracic <sskracic>
Status: CLOSED CURRENTRELEASE QA Contact: Amy Owens <aowens>
Severity: low Docs Contact:
Priority: low    
Version: rhn505CC: rhn-bugs, sskracic
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: us=28989
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-25 13:03:30 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: 450300    
Attachments:
Description Flags
simple test for api method none

Description Stephen Herr 2008-06-04 19:41:15 UTC
Description of problem:
The System.isNvreInstalled rpc api method has two forms listed in the
documentation: you can specify the package by either NVR or NVRE (name, version,
release, epoch). If you specify a package that has an epoch (most don't) and try
to use the epochless isNvreInstalled version it will always return false, even
if the package is installed. 

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

How reproducible:
always

Steps to Reproduce:
1. Run attached perl script 
  
Actual results:
Result: 0
Result: 1
Indicating that the first query returned false while the second returned true.
They should both return true.

Expected results:
Result: 1
Result: 1

Additional info:

Comment 1 Stephen Herr 2008-06-04 19:42:09 UTC
Created attachment 308388 [details]
simple test for api method

Comment 3 Sebastian Skracic 2008-06-18 16:32:46 UTC
Fixed in r118818.

Comment 4 Stephen Herr 2008-06-24 17:25:00 UTC
verified in dev

Comment 5 Stephen Herr 2008-09-05 13:16:28 UTC
verified in qa