Actions
Issue #4786
closedPulp does not accept empty atifacts
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 52
Quarter:
Description
Empty files should be valid artifacts (for the file plugin). However, Pulp 3 does not accept empty artifacts currently:
$ > empty_file
$ http --form POST http://localhost:24817/pulp/api/v3/artifacts/ file@./empty_file
HTTP/1.1 400 Bad Request
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 41
Content-Type: application/json
Date: Mon, 06 May 2019 17:57:16 GMT
Server: WSGIServer/0.2 CPython/3.7.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"file": [
"The submitted file is empty."
]
}
Added by gmbnomis over 5 years ago
Updated by amacdona@redhat.com over 5 years ago
- Status changed from NEW to POST
- Sprint/Milestone set to 3.0.0
- Triaged changed from No to Yes
- Sprint set to Sprint 52
Updated by gmbnomis over 5 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|9ab08d5ff3cb1992ff68b4794ce021d786776e9d.
Updated by bmbouter over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Allow artifacts with empty content
At least the file plugin should be able to support artifacts with empty content.
fixes #4786 https://pulp.plan.io/issues/4786