Actions
Issue #3017
closedRemoteArtifact contains all the calculated hashes instead of only ones available in a remote repo
Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 26
Quarter:
Description
To reproduce:
- create repo
- create importer with immediate policy
- sync
Check pulp_app_remoteartifact
table, it contains all the calculated hashes instead of one available in a remote repo.
pulp=# select * from pulp_app_remoteartifact;
...
-[ RECORD 7 ]-------+---------------------------------------------------------------------------------------------------------------------------------
id | 996b0c90-75fb-46d0-8e1b-61a6d6598456
url | https://repos.fedorapeople.org/pulp/pulp/fixtures/file-mixed/1.iso
size | 1048576
md5 | 8de62945335fe55f1d325ea9eaa29560
sha1 | 3ae81392aa1c98f8f92cf5ff326f5e93c73a9b2d
sha224 | aa356e94085735321aaa548719361264804160fc719c52376a62d485
sha256 | ef2f76c57febbf47662c7bc2b9382e4539fb30a32f5e0a690229d0dad3028468
sha384 | 249345db9a25d821990df98931deec56cd0e4feb6fe641d89a88d95ae25608d82e6beea2bef58a78a40d0a8ad3a1e083
sha512 | ad6a8141d7d636b825a2aa57111134beed5419a34036c222729ca91d0f5a1703a3c0f419852219e9eb658247fa75ae677e9be1c4a02d31765f0b90928a7e33a4
content_artifact_id | cc92ae49-1995-49d5-a1fc-6bdf5970d4e4
importer_id | e322d035-874c-48a2-a31e-374fb22e4154
Only the Artifact model is supposed to store all the calculated hashes (and it does).
RemoteArtifact is expected to have only information available in a remote repo.
Actions
Remote artifact created with correct digests. closes #3017