Actions
Issue #1035
closedRemove an Individual Orphaned Content Unit does not return 404
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
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"
}
]
}
Actions
Fixing behaviour of individual orphan removal and orphan removal by type
closes #667 closes #1035 https://pulp.plan.io/issues/667 https://pulp.plan.io/issues/1035