Bug #39346
closedFail to delete CV / CCV versions with error "The repository version cannot be deleted because it (or its publications) are currently being used to distribute content"
Description
When attempting to delete single or multiple versions of a Content View or Composite Content View, the operation fails. The backend process returns a 400 Bad Request, indicating that the repository version or its publications are actively associated with a distribution point, blocking deletion.
The deletion fails, and the following error is raised in the production.log:
HTTP status code: 400
Response headers: {"Date"=>"Thu, XX Month 2026 XX:XX:XX GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, DELETE, HEAD, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"174", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Cross-Origin-Opener-Policy"=>"same-origin", "Correlation-ID"=>"97a40a78-a5b4-4df0-b0c2-4a9949496bcd", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 satellite.example.com", "Connection"=>"close"}
Response body: ["The repository version cannot be deleted because it (or its publications) are currently being used to distribute content. Please update the necessary distributions first."]
Error message: the server returns an error
Steps to Reproduce
Navigate to the web UI.
Go to Content > Content Views or Composite Content Views.
Select a specific Content View and go to the Versions tab.
Attempt to delete a specific version (or multiple versions) of the CV.
Updated by The Foreman Bot about 2 months ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/11762 added
Updated by The Foreman Bot about 1 month ago
- Fixed in Releases Katello 5.0.0 added
Updated by Samir Jha about 1 month ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|2c2129b4bfb9b33b0ca215d3454f2d2ca6129e65.
Updated by The Foreman Bot about 1 month ago
- Fixed in Releases Katello 4.21.0 added