Bug 846683

Summary: Package re-pushed after resigning is displayed twice in channels
Product: Red Hat Satellite 5 Reporter: Jirka Tesar <jtesar>
Component: WebUIAssignee: Michael Mráka <mmraka>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 541CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-09 14:36:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot showing the duplicated package
none
Package for reproducer none

Description Jirka Tesar 2012-08-08 12:33:13 UTC
Description of problem:
Package is displayed twice after it was re-segned with different key and re-pushed to a channel.

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

Red Hat Network Satellite v 5.4.1


How reproducible:


Steps to Reproduce:
1. Create a channel ABCD
2. rhnpush -c ABCD XYZ.rpm 
3. re-sign package XYZ.rpm using different key (rpm --resign XYZ.rpm)
4. rhnpush -c ABCD --force XYZ.rpm
  
Actual results:
When displaying packages in channel ABCD, package XYZ is displayed twice

Expected results:
When displaying packages in channel ABCD, package XYZ should be displayed just once


Additional info:
The package is just displayed twice, both links to packages point to the same location.

Comment 1 Jirka Tesar 2012-08-08 15:38:50 UTC
Created attachment 603061 [details]
Screenshot showing the duplicated package

Comment 2 Jirka Tesar 2012-08-09 07:35:06 UTC
New reproducer - containing specific channel and package names:

Package python-2.6.6-29.el6.x86_64.rpm attached.

1. Create a channel testcase in satellite WebUI
2. rhnpush -c testcase python-2.6.6-29.el6.x86_64.rpm 
3. re-sign package python-2.6.6-29.el6.x86_64.rpm using different key (rpm --resign python-2.6.6-29.el6.x86_64.rpm)
4. rhnpush -c testcase --force python-2.6.6-29.el6.x86_64.rpm

Comment 3 Jirka Tesar 2012-08-09 07:35:59 UTC
Created attachment 603193 [details]
Package for reproducer

Comment 4 Clifford Perry 2012-08-09 14:25:45 UTC
This is expected, we know of different NEVRA with different keys for packages. As such, what your seeing to me is expected, unless the switch to allow multi-nerva is disabled, in which case the force upload would/should fail. 

Michael should be able to confirm this for me.

Comment 5 Clifford Perry 2012-08-09 14:36:10 UTC

*** This bug has been marked as a duplicate of bug 846938 ***