Project

Profile

Help

Issue #6538

Unable to create ReleaseArchitecture or ReleaseComponent via the API

Added by lieter 5 months ago. Updated 2 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

After creating a release

http -j -a 'admin:password' POST http://pulp3.home.plexis.eu/pulp/api/v3/content/deb/releases/ codename=foo distribution=foo suite=foo

it isn't possible to create a ReleaseArchitecture or ReleaseComponent:

$ http -j -a 'admin:password' :24817/pulp/api/v3/content/deb/releases/
HTTP/1.1 200 OK
Allow: GET, POST, HEAD, OPTIONS
Connection: close
Content-Length: 236
Content-Type: application/json
Date: Tue, 21 Apr 2020 15:47:45 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "codename": "foo",
            "distribution": "foo",
            "pulp_created": "2020-04-17T16:09:02.264431Z",
            "pulp_href": "/pulp/api/v3/content/deb/releases/624b65f8-c8f6-486b-a75a-318591552009/",
            "suite": "foo"
        }
    ]
}

$ http -j -a 'admin:password' POST :24817/pulp/api/v3/content/deb/release_architectures/ architecture=amd64 release='/pulp/api/v3/content/deb/releases/624b65f8-c8f6-486b-a75a-318591552009/'
HTTP/1.1 400 Bad Request
Allow: GET, POST, HEAD, OPTIONS
Connection: close
Content-Length: 56
Content-Type: application/json
Date: Tue, 21 Apr 2020 15:53:02 GMT
Server: gunicorn/20.0.4
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "release": [
        "Invalid hyperlink - Incorrect URL match."
    ]
}

Being able to do this should enable 'structured publishing' for non-mirrored debian repositories (I'm told)


Related issues

Related to Debian Support - Story #7287: As a user I want to create arbitrary structured publicationsNEW

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

History

#1 Updated by quba42 2 months ago

  • Sprint/Milestone set to Wishlist

#2 Updated by quba42 about 2 months ago

  • Related to Story #7287: As a user I want to create arbitrary structured publications added

Please register to edit this issue

Also available in: Atom PDF