Actions
Issue #4837
closedPrevent users from creating repo version distributions without repo and without repo versions
Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
The RepositoryVersionDistributionSerializer should check that either repo or repo version is being passed:
$ http :24817/pulp/api/v3/distributions/ansible/ansible/2e14ac1d-12eb-4afd-b2cd-4369e7a2429b/
HTTP/1.1 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Connection: close
Content-Length: 275
Content-Type: application/json
Date: Thu, 16 May 2019 17:40:56 GMT
Server: gunicorn/19.9.0
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN
{
"_created": "2019-05-16T17:40:40.872560Z",
"_href": "/pulp/api/v3/distributions/ansible/ansible/2e14ac1d-12eb-4afd-b2cd-4369e7a2429b/",
"base_path": "dev",
"base_url": "localhost:24816/pulp/content/dev",
"content_guard": null,
"name": "baz",
"repository": null,
"repository_version": null
}
Related issues
Actions