Project

Profile

Help

Issue #6453

closed

sha512 checksum validation fail

Added by ttereshc almost 4 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.21.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 71
Quarter:

Description

Steps to Reproduce:

  1. create a repository with url "https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-sha-512/" and immediate download policy
  2. sync the repository with --validate set to tue
  3. check the rpm count in the repo
Download succeeded: https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-with-sha-512/zebra-0.1-2.noarch.rpm.
ERROR: (8377-95616) Listener error on event: succeeded
ERROR: (8377-95616) Traceback (most recent call last):
ERROR: (8377-95616)   File "/usr/lib/python2.7/site-packages/pulp/server/content/sources/event.py", line 39, in __call__
ERROR: (8377-95616)     listener.on_event(self)
ERROR: (8377-95616)   File "/usr/lib/python2.7/site-packages/pulp/server/content/sources/event.py", line 135, in on_event
ERROR: (8377-95616)     method(event.request)
ERROR: (8377-95616)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/alternate.py", line 119, in on_succeeded
ERROR: (8377-95616)     self.content_listener.download_succeeded(report)
ERROR: (8377-95616)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/listener.py", line 195, in download_succeeded
ERROR: (8377-95616)     super(RPMListener, self).download_succeeded(report)
ERROR: (8377-95616)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/listener.py", line 86, in download_succeeded
ERROR: (8377-95616)     self._verify_checksum(unit, report.destination)
ERROR: (8377-95616)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/listener.py", line 150, in _verify_checksum
ERROR: (8377-95616)     if sums[unit.checksumtype] != unit.checksum:
ERROR: (8377-95616) KeyError: u'sha512'

Added by ttereshc almost 4 years ago

Revision 702955fc | View on GitHub

Add sha512 support for verification upon package download

closes #6453 https://pulp.plan.io/issues/6453

Actions #1

Updated by pulpbot almost 4 years ago

  • Status changed from NEW to POST
Actions #2

Updated by ttereshc almost 4 years ago

  • Tags Pulp 2 added
Actions #3

Updated by ttereshc almost 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 70
Actions #4

Updated by rchan almost 4 years ago

  • Sprint changed from Sprint 70 to Sprint 71
Actions #5

Updated by ttereshc almost 4 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by dalley almost 4 years ago

  • Sprint/Milestone set to Pulp RPM 3.3.0
Actions #7

Updated by dalley almost 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #8

Updated by ipanova@redhat.com almost 4 years ago

  • Status changed from CLOSED - CURRENTRELEASE to MODIFIED
  • Sprint/Milestone deleted (Pulp RPM 3.3.0)
Actions #9

Updated by dalley almost 4 years ago

  • Platform Release set to 2.21.2

Added by ttereshc almost 4 years ago

Revision c6d10953 | View on GitHub

Add sha512 support for verification upon package download

closes #6453 https://pulp.plan.io/issues/6453

(cherry picked from commit 702955fc4e05e6eacfb543c3eedc269b127ab9a1)

Actions #11

Updated by ttereshc almost 4 years ago

Actions #12

Updated by dalley almost 4 years ago

  • Status changed from MODIFIED to 5
Actions #13

Updated by dalley almost 4 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

Also available in: Atom PDF