Project

Profile

Help

Issue #4786

Pulp does not accept empty atifacts

Added by gmbnomis 5 months ago. Updated 5 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 52

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

Associated revisions

Revision 9ab08d5f View on GitHub
Added by gmbnomis 5 months ago

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

History

#1 Updated by gmbnomis 5 months ago

  • Assignee set to gmbnomis

#3 Updated by amacdona@redhat.com 5 months ago

  • Status changed from NEW to POST
  • Sprint/Milestone set to 3.0
  • Triaged changed from No to Yes
  • Sprint set to Sprint 52

#4 Updated by gmbnomis 5 months ago

  • Status changed from POST to MODIFIED

Please register to edit this issue

Also available in: Atom PDF