Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1073652 - syncErrata clones wrong packages, messes up cloned channel
Summary: syncErrata clones wrong packages, messes up cloned channel
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 2.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Red Hat Satellite QA List
Depends On:
Blocks: 1074062 space22
TreeView+ depends on / blocked
Reported: 2014-03-06 21:23 UTC by Stephen Herr
Modified: 2014-07-17 08:41 UTC (History)
2 users (show)

Fixed In Version: spacewalk-java-2.2.13-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1074062 (view as bug list)
Last Closed: 2014-07-17 08:41:36 UTC

Attachments (Terms of Use)

Description Stephen Herr 2014-03-06 21:23:45 UTC
Description of problem:
The API method does not work correctly. It's current behavior is:
1) Update the details of the cloned errata to match their originals (fine)
2) Clone packages into the cloned channel that are:
  a) in the original channel
  b) delivered by an erratum that has a clone

The 2b portion is the problem. The behavior should be "2b: delivered by an erratum that has a clone in this cloned channel"

If you have multiple clones of the same channel this bug can cause the wrong packages to be imported into your cloned channel. This is especially problematic since spacewalk-clone-by-date now calls this method by default.

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

How reproducible:

Steps to Reproduce:
1. Clone a channel with all errata with spacewalk-clone-by-date
2. Clone the original channel again with spacewalk-clone-by-date, this time with only some of the errata

Actual results:
The second clone contains all the packages that the original did.

Expected results:
The second clone should contain only packages relevant to the errata it contains.

Comment 1 Stephen Herr 2014-03-07 20:20:58 UTC
Committing to Spacewalk master:

Comment 2 Milan Zázrivec 2014-07-17 08:41:36 UTC
Spacewalk 2.2 has been released:

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