Actions
Issue #3671
closedCan't unset publication on distribution
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 37
Quarter:
Description
You can create a distribution without a publication but once you set publication on a distribution, you can't unset it.
$ http POST :8000/pulp/api/v3/distributions/ name=test base_path=test
# 200
$ http PATCH :8000/pulp/api/v3/distributions/320f93b3-79e4-4425-ba99-15338284979c/ publication=/pulp/api/v3/publications/6529920f-9507-4ec0-bb09-50afa31b1685/
# 200
$ http PATCH :8000/pulp/api/v3/distributions/320f93b3-79e4-4425-ba99-15338284979c/ publication=
# 400
{
"publication": [
"This field may not be null."
]
}
Actions
Allowing publication to be unset on distributions
The problem is you can create distributions without publications but you can't unset a publication on a distribution once it is set.
fixes #3671 https://pulp.plan.io/issues/3671