Bug 538213 - profile.comparePackages() doesn't return correct set
Summary: profile.comparePackages() doesn't return correct set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 530
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: sat531-blockers
TreeView+ depends on / blocked
 
Reported: 2009-11-17 22:42 UTC by Justin Sherrill
Modified: 2015-01-04 21:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-08 10:03:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0021 0 normal SHIPPED_LIVE Red Hat Network Satellite bug fix update 2010-01-08 10:02:22 UTC

Description Justin Sherrill 2009-11-17 22:42:50 UTC
Due to the fix in this bug: https://bugzilla.redhat.com/show_bug.cgi?id=527724

the profile.comparPackages() api call doesn't return the correct items.  Create two profiles with the following package profiles:

ProfileA:
Package1
Package2

ProfileB:
Package2
Package3


Then call profile.comparePackages(key, "profilea", "profileb")

You would expect each list to only have one package in it, but each list includes two.

This was uncovered by a unit test.

Fixed master: 8bbff5f02a384fc63e6d052e19d72901ad507688

Comment 2 Garik Khachikyan 2009-12-21 17:23:23 UTC
Actually the method is: kickstart.profile.comparePackages and compares packages of two kickstart profiles.

Comment 5 Garik Khachikyan 2010-01-02 19:56:58 UTC
# VERIFIED

Following version of packages fixed the issue described in bug description:
spacewalk-java-0.5.44-62.el[4,5]sat
spacewalk-java-lib-0.5.44-62.el[4,5]sat
spacewalk-java-config-0.5.44-62.el[4,5]sat
spacewalk-taskomatic-0.5.44-62.el[4,5]sat

Now the method call returns only the missed packages in both kickstart profile's software package list.

Comment 7 errata-xmlrpc 2010-01-08 10:03:08 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0021.html


Note You need to log in before you can comment on or make changes to this bug.