Bug #32690
closedCannot reupload package to repo after deleting it
Description
To reproduce:
1) Sync a repo
2) Navigate to Products > [Product Name] > Repositories > [Repo Name] > Packages
3) Delete a package
4) Navigate to Products > [Product Name] > Repositories > [Repo Name]
5) Manually upload the deleted package using the "Upload Package" box.
When following these steps using this repo (https://jlsherrill.fedorapeople.org/fake-repos/needed-errata/) while deleting/reuploading the walrus-5.21-1.noarch.rpm package this error was produced in the terminal:
2021-06-01T13:22:00 [D|app|498d9702] With body: {"displayMessage":"Task 08bd8ac4-116a-4491-8d70-a4e668e7d883: Katello::Errors::Pulp3Error: {'non_field_errors': [ErrorDetail(string=\"Artifact with sha256 checksum of 'e837a635cc99f967a70f34b268baa52e0f412c1502e08e924ff5b09f1f9573f2' already exists.\", code='unique')]}","errors":["Task 08bd8ac4-116a-4491-8d70-a4e668e7d883: Katello::Errors::Pulp3Error: {'non_field_errors': [ErrorDetail(string=\"Artifact with sha256 checksum of 'e837a635cc99f967a70f34b268baa52e0f412c1502e08e924ff5b09f1f9573f2' already exists.\", code='unique')]}"]}
This error also showed as a pop-up box in the GUI.