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 1105273 - fix rhn_package_manager to support other checksums
Summary: fix rhn_package_manager to support other checksums
Alias: None
Product: Spacewalk
Classification: Community
Component: Proxy Server
Version: 2.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Red Hat Satellite QA List
Depends On:
Blocks: space22
TreeView+ depends on / blocked
Reported: 2014-06-05 18:23 UTC by Stephen Herr
Modified: 2014-07-17 08:40 UTC (History)
0 users

Fixed In Version: spacewalk-proxy-2.2.3-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-07-17 08:40:55 UTC

Attachments (Terms of Use)

Description Stephen Herr 2014-06-05 18:23:49 UTC
Description of problem:
rhn_package_manager will always upload package metadata contianing only md5 checksums. Instead it should do what rhnpush does and use sha256 if it's available on the operating system you're running on.

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

How reproducible:

Steps to Reproduce:
1. Upload a package to a channel through rhn_package_manager
2. Look at that package's data in Spacewalk UI

Actual results:
MD5SUM is always calculated / displayed

Expected results:
SHA256 should be the default if proxy is running on a RHEL 6 or later machine.

Comment 1 Stephen Herr 2014-06-06 14:20:55 UTC
The problem was that for legacy reasons rhn_package_manager was forcing md5 checksums. It doesn't need to do that; instead inherit the rhnpush behavior of using the default checksum for the rpm.

The checksum that is used should be whatever is in the rpm headers, which should be MD5 for RHEL 5 RPMs and SHA256 for newer OS's.

Committing to Spacewalk master:

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

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