Actions
Issue #3073
closedCan't remove content from a repository
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Sprint 27
Quarter:
Description
We have an api endpoint to remove content from a repository at /api/v3/repositorycontents/{id}/
.
However, we don't expose the repo content id. For example, here's the list request:
$ http http://localhost:8000/api/v3/repositorycontents/
HTTP/1.0 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 200
Content-Type: application/json
Date: Mon, 16 Oct 2017 19:09:20 GMT
Server: WSGIServer/0.2 CPython/3.5.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"next": null,
"previous": null,
"results": [
{
"content": "http://localhost:8000/api/v3/content/example/1607fef2-d18b-4983-bfec-4fc2fc0ac492/",
"repository": "http://localhost:8000/api/v3/repositories/foo/"
}
]
}
Therefore, it's impossible to remove content from a repo.
Updated by amacdona@redhat.com about 7 years ago
- Sprint/Milestone set to 45
- Triaged changed from No to Yes
Updated by daviddavis about 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to daviddavis
Updated by daviddavis about 7 years ago
- Status changed from ASSIGNED to POST
Updated by jortel@redhat.com about 7 years ago
- Sprint/Milestone changed from 45 to 46
Added by daviddavis about 7 years ago
Added by daviddavis about 7 years ago
Revision 9ed27511 | View on GitHub
Return the repository content href so they can be deleted
Updated by daviddavis about 7 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|9ed275115e3f9bf5010abf250f9602ebc211c546.
Updated by bmbouter almost 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Return the repository content href so they can be deleted
fixes #3073 https://pulp.plan.io/issues/3073