Project

Profile

Help

Issue #1389

closed

Disallow re-uploading the same package twice

Added by igan over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
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

Related to Pulp - Issue #2630: disassociate_units updates last_unit_removed timestamp even if no units are removedCLOSED - CURRENTRELEASEsemyersActions

Also available in: Atom PDF