Project

Profile

Help

Issue #4837

Prevent users from creating repo version distributions without repo and without repo versions

Added by daviddavis over 2 years ago. Updated over 2 years ago.

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

Related to Pulp - Issue #4840: Prevent users from creating publication distributions without a publicationCLOSED - WONTFIX<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by daviddavis over 2 years ago

  • Subject changed from I can create repo version distributions without repo and without repo versions to Prevent users from creating repo version distributions without repo and without repo versions

#2 Updated by ipanova@redhat.com over 2 years ago

  • Related to Issue #4840: Prevent users from creating publication distributions without a publication added

#3 Updated by daviddavis over 2 years ago

  • Status changed from NEW to CLOSED - WONTFIX

We decided that we'll allow users to create distributions without distributing anything. This could be to reserve a path namespace, take a repo/repo version offline quickly without having to delete the distribution, etc

Please register to edit this issue

Also available in: Atom PDF