Project

Profile

Help

Issue #4471

closed

Pulp returns 200 when it fails to create rpm content

Added by daviddavis about 5 years ago. Updated over 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
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 49
Quarter:

Description

Steps to reproduce:

$ echo "blah" > foo-4.1-1.noarch.rpm
$ http --form POST http://localhost:8000/pulp/api/v3/artifacts/ file@./foo-4.1-1.noarch.rpm
$ http POST http://localhost:8000/pulp/api/v3/content/rpm/packages/ relative_path=foo.rpm _artifact="/pulp/api/v3/artifacts/1/" filename=foo-4.1-1.noarch.rpm

The response correctly shows an error ("RPM file cannot be parsed for metadata.") but the http status code is 200.


Related issues

Copied to RPM Support - Issue #4537: Pulp returns 200 when it fails to create rpm contentCLOSED - WONTFIXActions

Also available in: Atom PDF