Actions
Issue #7431
closedRemoving distribution tree cause error on repository version
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 83
Quarter:
Description
How to reproduce:
- sync repository with dist tree e.g. fixtures[0] (got the repo_version and added dist_tree)
- remove dist_tree
- look (e.g. http GET) for repo version
AttributeError at /pulp/api/v3/repositories/rpm/rpm/6c56dc14-63f5-4ee1-ac1f-a542add7061a/versions/1/
'NoneType' object has no attribute 'cast'
Updated by ttereshc over 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 80
Updated by ppicka over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ppicka
Updated by fao89 over 4 years ago
I'm not sure about the use case for pulp_rpm, but I believe it needs a fix at pulpcore side, we cannot call cast without assuring we have an object
Updated by ppicka over 4 years ago
That is true, but in the time it should be casted, pulp assume content is there and it should. We should not allow delete content when it is used in repository.
Updated by pulpbot about 4 years ago
- Status changed from ASSIGNED to POST
Added by ppicka about 4 years ago
Updated by ppicka about 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset 5fb7bee69b6897a1edb168d6e63108696126fa7d.
Updated by pulpbot about 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Comps and disttree removal
User should not be able to remove distribution trees and comps if they are used in repository. If they are not in repo they will be removed with orphan cleanup as other content.
closes: #7431 https://pulp.plan.io/issues/7431