Project

General

Profile

Actions

Bug #31455

closed

Web UI shows duplicate rpms when user uploads the same rpm that signed with different checksum

Added by Ian Ballou about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1883722

Description of problem:
Re-sign a rpm that is already existed in the repository and re-upload it to the Katello repository causes duplicate rpms in the Web UI.

Steps to Reproduce:
1. Buld or prepare an unsigned rpm.
2. Create a gpg key.
3. Use the gpg key to sign the rpm with sha1.
4. Create a rpm repository in Katello.
5. Upload the sha1 signed rpm to the repository.
6. Use the gpg key to re-sign the rpm with sha2 again.
7. Upload the sha2 signed rpm to the repository.

Actual results:
Web UI shows that the repository contains duplicate rpms

Expected results:
No duplicate rpms show in the Web UI

Additional info:
Reindex the repository fixes the issue

echo '
Katello::Repository.find(<REPLACE THIS WITH THE REPO ID>).index_content
' | foreman-rake console

Actions #1

Updated by Ian Ballou about 4 years ago

  • Subject changed from Web UI shows duplicate rpms when user uploads the same rpm that signed with different checksum to Web UI shows duplicate rpms when user uploads the same rpm that signed with different checksum
  • Found in Releases Katello 3.14.1 added
Actions #2

Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9070 added
Actions #3

Updated by Chris Roberts about 4 years ago

  • Target version set to Katello 3.18.1
  • Triaged changed from No to Yes
Actions #4

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases Katello 4.0.0 added
Actions #5

Updated by Anonymous about 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF