Issue #636
closedAPI delete nonexisting upload_id returns 200
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
Updated by ipanova@redhat.com over 9 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ipanova@redhat.com
Updated by ipanova@redhat.com over 9 years ago
- Status changed from ASSIGNED to POST
Updated by ipanova@redhat.com over 9 years ago
- Status changed from POST to MODIFIED
Updated by dkliban@redhat.com over 9 years ago
- Status changed from MODIFIED to 5
Updated by igulina@redhat.com over 9 years ago
- Status changed from 5 to ASSIGNED
Failed QA
>> rpm -qa pulp-server
pulp-server-2.7.1-0.1.alpha.git.324.ab390d2.el6.noarch
>> 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://localhost/pulp/api/v2/content/uploads/b5467f02-8b59-4100-ad21-443905300ea2/
HTTP/1.1 200 OK
Date: Wed, 17 Jun 2015 12:26:08 GMT
Server: Apache/2.2.15 (Red Hat)
Content-Length: 4
Connection: close
Content-Type: application/json
null
>> curl -i -H "Accept: application/json" -X DELETE -k -u user:pass 'https://localhost/pulp/api/v2/content/uploads/b5467f02-8b59-4100-ad21-443905300ea2/'
HTTP/1.1 200 OK
Date: Wed, 17 Jun 2015 12:26:22 GMT
Server: Apache/2.2.15 (Red Hat)
Content-Length: 4
Connection: close
Content-Type: application/json
Updated by ipanova@redhat.com over 9 years ago
- Status changed from ASSIGNED to NEW
- Assignee deleted (
ipanova@redhat.com) - Platform Release deleted (
2.7.0)
This cannot be fixed until https://pulp.plan.io/issues/892 will be implemented.
Updated by ipanova@redhat.com over 9 years ago
- Blocked by Story #892: Redesign of Uploads API added
Updated by bmbouter over 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter over 5 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Updated by bmbouter over 4 years ago
- Category deleted (
14)
We are removing the 'API' category per open floor discussion June 16, 2020.