Project

Profile

Help

Issue #1923

closed

POST /pulp/api/v2/content/actions/delete_orphans/ is broken

Added by Ichimonji10 almost 8 years ago. Updated over 2 years ago.

Status:
CLOSED - NOTABUG
Priority:
Urgent
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.8.3
Platform Release:
2.8.5
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

According to the documentation, it's possible to remove orphaned content units by type and id. [1] It can be done with a call like the following:

POST /pulp/api/v2/content/actions/delete_orphans/ HTTP/1.1
Host: pulp.example.com
Content-Type: application/json

{"content_type_id": "erratum", "unit_id": "abc123"}

According to the Pulp 2.4 release notes, this feature is deprecated. [2] However, semantic versioning implies that this feature won't be released until Pulp version 3. This API call has broken and been fixed in the past. [3] I've tested this API call against Pulp 2.8.3 on Fedora 23.

1. http://pulp.readthedocs.io/en/latest/dev-guide/integration/rest-api/content/orphan.html#remove-orphaned-content-units-by-type-and-id
2. http://pulp.readthedocs.io/en/latest/user-guide/release-notes/2.4.x.html#other-changes
3. https://bugzilla.redhat.com/show_bug.cgi?id=1092467

Also available in: Atom PDF