Project

Profile

Help

Issue #8533

PackageReleaseComponentSerializer - package and release-component use identical queries

Added by ggainey about 1 month ago. Updated 18 days 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

See the code here : https://github.com/pulp/pulp_deb/blob/main/pulp_deb/app/serializers/content_serializers.py#L551-L567

Looks like 'package' is a cut-and-paste of 'release_component', which I suspect is Bad.

History

#1 Updated by jxsxs about 1 month ago

Tested this with:


POST to /pulp/api/v3/content/deb/package_release_components/

with payload of:


{

    "package": "pulp/api/v3/content/deb/packages/7bbc7292-27ba-4216-b155-4b0c508ee1d2",
    "release_component": "pulp/api/v3/content/deb/releases/80f239cf-52a4-4cbc-8072-d4029ca6cc54"

}

results in:

{
    "package": [
        "Invalid hyperlink - No URL match."
    ],
    "release_component": [
        "Invalid hyperlink - No URL match."
    ]
}

#2 Updated by quba42 18 days ago

  • Sprint/Milestone set to Wishlist

Please register to edit this issue

Also available in: Atom PDF