Project

Profile

Help

Issue #5377

Cannot modify, delete, or duplicate content

Added by jaymzh about 1 year ago. Updated 2 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
4. Urgent
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Once an artifact has been made into apt content, that content cannot be modified or deleted. Further, you can't work around this by creating new content because multiple contents cannot point to the same artifact because content cannot have the same sha256 sum.

As such if you create content incorrectly, there is literally now way out of it.

Kinemaster-Mod-APK.jpg (156 KB) Kinemaster-Mod-APK.jpg Anonymous, 08/13/2020 05:49 PM
250

Associated revisions

Revision ec1038f2 View on GitHub
Added by mdellweg about 1 year ago

Fix uniqueness of packages

Add relative_path to packages natural key

re #5377 https://pulp.plan.io/issues/5377

Revision 53c3c0b7 View on GitHub
Added by mdellweg about 1 year ago

Add validation for uploading packages

Check, that a given relativ_path contains the right filename, and distinguish normal from installer packages.

fixes #5377 https://pulp.plan.io/issues/5377

History

#1 Updated by mdellweg about 1 year ago

Can you test, whether
https://github.com/pulp/pulp_deb/pull/87/commits/026eb974f38bb13f85c3f889662770479c2a11d6
fixes, or at least improves the issue?
Then i could append that commit to this issue.

#2 Updated by mdellweg about 1 year ago

The PR:
https://github.com/pulp/pulp_deb/pull/129

Introduces more validation when uploading a package. It should be almost impossible to create erroneous package content types this way.

#3 Updated by mdellweg about 1 year ago

  • Status changed from NEW to MODIFIED

#4 Updated by Anonymous 2 months ago

250

Please register to edit this issue

Also available in: Atom PDF