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."
]
}
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