Bug #31455
closedWeb UI shows duplicate rpms when user uploads the same rpm that signed with different checksum
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
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
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
Updated by Chris Roberts about 4 years ago
- Target version set to Katello 3.18.1
- Triaged changed from No to Yes
Updated by The Foreman Bot about 4 years ago
- Fixed in Releases Katello 4.0.0 added
Updated by Anonymous about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|ba98fcfe9e6a7c1ae2ae8d290cdbd86bb2738660.