Actions
Issue #1389
closedDisallow re-uploading the same package twice
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.10.3
Platform Release:
2.12.2
OS:
RHEL 6
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 16
Quarter:
Description
when pulp-admin is used for uploading rpm package that already published with same name, version and package version, but different sha and size, then yum install returns following error:
[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
It looks like the metadata of the package is not updated, and the size of package served by http is not the same as in metadata. This causes 416 HTTP error.
Obviosly releasing of same RPM twice is a error case scenario, but the behavior of pulp is not adequate.
I see 2 possible behaviors:
1) check if package is already in the repo and reject 2-nd push
2) silently overwrite the old package with the new one, including metadata.
I leave you choosing the expected behavior.
Related issues
Actions
Update last_unit_removed when unit is disassociated
It will force subsequent publish to be from scratch. Before that publish could be incremental and in some cases, like upload of the package with same NEVRA, resulted in duplicated or outdated metadata in the published repository.
closes #1389 https://pulp.plan.io/issues/1389