Project

Profile

Help

Issue #6538

closed

Unable to create ReleaseArchitecture or ReleaseComponent via the API

Added by lieter over 4 years ago. Updated almost 3 years ago.

Status:
CLOSED - DUPLICATE
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

Ticket moved to GitHub: "pulp/pulp_deb/383":https://github.com/pulp/pulp_deb/issues/383


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 publicationsCLOSED - DUPLICATE

Actions
Actions #1

Updated by quba42 over 4 years ago

  • Sprint/Milestone set to Wishlist
Actions #2

Updated by quba42 over 4 years ago

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

Updated by jxsxs over 3 years ago

I'm seeing this too

Actions #4

Updated by pulpbot almost 3 years ago

  • Description updated (diff)
  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF