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

Updated by gmbnomis almost 5 years ago

  • Assignee set to gmbnomis

Added by gmbnomis almost 5 years ago

Revision 9ab08d5f | View on GitHub

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

Actions #3

Updated by amacdona@redhat.com almost 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
Actions #4

Updated by gmbnomis almost 5 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by bmbouter over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF