Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid hyperlink when creating ReleaseComponent #575

Closed
daviddavis opened this issue Jul 12, 2022 · 1 comment · Fixed by #576
Closed

Invalid hyperlink when creating ReleaseComponent #575

daviddavis opened this issue Jul 12, 2022 · 1 comment · Fixed by #576

Comments

@daviddavis
Copy link
Contributor

daviddavis commented Jul 12, 2022

Hoping someone can confirm whether this is a bug or maybe I am doing something wrong?

Version
pulpcore 3.19.0
pulp_deb 2.18.0

Describe the bug
I am trying to create a ReleaseComponent but getting Invalid hyperlink - Incorrect URL match. for the release field.

To Reproduce

RELEASE_HREF=$(http :8080/pulp/api/v3/content/deb/releases/ codename=mycodename$RANDOM suite=noidea$RANDOM distribution=mydist$RANDOM | jq -r ".pulp_href")
echo $RELEASE_HREF
http :8080/pulp/api/v3/content/deb/release_components/ component=mycomp release=$RELEASE_HREF

Response:

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

Expected behavior
The component is created.

@daviddavis
Copy link
Contributor Author

I am trying to build a release component with packages and here's the full script I am trying to run to test it out (feedback welcome):

RELEASE_HREF=$(http :8080/pulp/api/v3/content/deb/releases/ codename=mycodename$RANDOM suite=noidea$RANDOM distribution=mydist$RANDOM | jq -r ".pulp_href")
echo $RELEASE_HREF

COMP_HREF=$(http :8080/pulp/api/v3/content/deb/release_components/ component=mycomp release=$RELEASE_HREF)
echo $COMP_HREF

wget https://fixtures.pulpproject.org/debian/pool/asgard/f/frigg/frigg_1.0_ppc64.deb
TASK_HREF=$(http --form :8080/pulp/api/v3/content/deb/packages/ file@frigg_1.0_ppc64.deb | jq -r ".task")
PACKAGE_HREF=$(http :8080${TASK_HREF} | jq -r ".created_resources[0]")
echo $PACKAGE_HREF

http :8080/pulp/api/v3/content/deb/package_release_components/ package=$PACKAGE_HREF release_component=$COMP_HREF

daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Jul 12, 2022
daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Jul 12, 2022
daviddavis added a commit to daviddavis/pulp_deb that referenced this issue Jul 13, 2022
quba42 pushed a commit that referenced this issue Jul 14, 2022
patchback bot pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
patchback bot pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
patchback bot pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
patchback bot pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
quba42 pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
quba42 pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
quba42 pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
quba42 pushed a commit that referenced this issue Jul 14, 2022
fixes #575

(cherry picked from commit 0429ddd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant