Project

Profile

Help

Issue #3671

closed

Can't unset publication on distribution

Added by daviddavis over 6 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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."
    ]
}

Also available in: Atom PDF