Project

Profile

Help

Issue #636

closed

API delete nonexisting upload_id returns 200

Added by igulina@redhat.com about 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - WONTFIX
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:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
API delete nonexisting upload_id returns 200, checked on 2.4.4 and 2.6 for empty and non empty upload_id list

Version-Release number of selected component (if applicable):

rpm -qa | grep pulp-server

pulp-server-2.6.0-0.1.alpha.el7.noarch

How reproducible:
always

Steps to Reproduce:

curl -k -X GET https://user:pass@localhost/pulp/api/v2/content/uploads/

{"upload_ids": []}

curl -i -H \"Accept: application/json\" -X DELETE -k -u user:pass 'https://host/pulp/api/v2/content/uploads/b5467f02-8b59-4100-ad21-443905300ea2/'

curl: (6) Could not resolve host: application; Name or service not known
HTTP/1.1 200 OK
Date: Thu, 11 Dec 2014 15:26:35 GMT
Server: Apache/2.4.6 (Red Hat) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 4
Content-Type: application/json

null

______________________________________________________________________
_
_____________________________________________________________________

another host:

rpm -qa | grep pulp-server

pulp-server-2.4.4-0.1.beta.el7.noarch

curl -k -X GET https://user:pass@localhost/pulp/api/v2/content/uploads/

{"upload_ids": ["01f417c9-e25e-492e-baba-a60967d8882d"]}

curl -i -H \"Accept: application/json\" -X DELETE -k -u user:pass 'https://localhost/pulp/api/v2/content/uploads/b5467f02-8b59-4100-ad21-443905300ea2/'

curl: (6) Could not resolve host: application; Name or service not known
HTTP/1.1 200 OK
Date: Thu, 11 Dec 2014 15:33:51 GMT
Server: Apache/2.4.6 (Red Hat) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5
Content-Length: 4
Content-Type: application/json

Expected results:
404 as in docs https://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/content/upload.html#delete-an-upload-request

+ This bug was cloned from Bugzilla Bug #1173176 +


Related issues

Blocked by Pulp - Story #892: Redesign of Uploads APICLOSED - WONTFIX

Actions

Also available in: Atom PDF