Project

Profile

Help

Issue #1035

closed

Remove an Individual Orphaned Content Unit does not return 404

Added by ipanova@redhat.com almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.7.0 Beta
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Remove an Individual Orphaned Content Unit does not return 404 in case content unit or content type do not exist

$ curl -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X DELETE -k -u admin:admin 'https://localhost/pulp/api/v2/content/orphans/rpm/123/'| python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   172  100   172    0     0    304      0 --:--:-- --:--:-- --:--:--   304
{
    "error": null,
    "result": null,
    "spawned_tasks": [
        {
            "_href": "/pulp/api/v2/tasks/e56dd67c-5560-4a75-a9ca-53de559af67a/",
            "task_id": "e56dd67c-5560-4a75-a9ca-53de559af67a"
        }
    ]
}
$ curl -H "Accept: application/json" -H "WebFrameworkSwitch: django" -X DELETE -k -u admin:admin 'https://localhost/pulp/api/v2/content/orphans/foo/123/'| python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   172  100   172    0     0    337      0 --:--:-- --:--:-- --:--:--   337
{
    "error": null,
    "result": null,
    "spawned_tasks": [
        {
            "_href": "/pulp/api/v2/tasks/0f0460d3-ef76-4140-9ead-46a4685243b4/",
            "task_id": "0f0460d3-ef76-4140-9ead-46a4685243b4"
        }
    ]
}

Also available in: Atom PDF