Actions
Issue #5092
closedFiles are not deleted whent deleting uploads
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 56
Quarter:
Description
This bugs is related to this issue:
https://pulp.plan.io/issues/5087
When the artifact creation fails the upload is not deleted, which is normal.
But when I clean all the server uploads using API
for u in $(http $PORT/pulp/api/v3/uploads/ | jq -r '.results[] | ._href'); do
echo $u
http DELETE $PORT$u
done
The files are not deleted.
Related issues
Actions
Implement delete method for uploads
The method delete() was redefined in order to prevent an accumulation of an uploaded content which was not associated with an artifact. Before this commit, data were deleted from the database, but not from the local file system.
closes #5092 https://pulp.plan.io/issues/5092