Project

Profile

Help

Issue #636

closed

API delete nonexisting upload_id returns 200

Added by igulina@redhat.com almost 10 years ago. Updated over 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
Actions #1

Updated by ipanova@redhat.com over 9 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ipanova@redhat.com
Actions #2

Updated by ipanova@redhat.com over 9 years ago

  • Status changed from ASSIGNED to POST
Actions #3

Updated by ipanova@redhat.com over 9 years ago

  • Status changed from POST to MODIFIED
Actions #4

Updated by bmbouter over 9 years ago

  • Severity changed from Medium to 2. Medium
Actions #5

Updated by dkliban@redhat.com over 9 years ago

  • Platform Release set to 2.7.0
Actions #6

Updated by dkliban@redhat.com over 9 years ago

  • Status changed from MODIFIED to 5
Actions #7

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
Actions #8

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.

Actions #9

Updated by ipanova@redhat.com over 9 years ago

  • Blocked by Story #892: Redesign of Uploads API added
Actions #10

Updated by bmbouter over 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #11

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.

Actions #12

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added
Actions #13

Updated by bmbouter over 4 years ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Also available in: Atom PDF