Project

Profile

Help

Issue #4786

closed

Pulp does not accept empty atifacts

Added by gmbnomis almost 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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."
    ]
}

Also available in: Atom PDF