Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When creating a new repo, if I specify wrong URL the creation fails in the middle with a cryptic error not allowing me to easily start over or even delete the current progress.
Version-Release number of selected component (if applicable):
6.10 / nightly
How reproducible:
100%
Steps to Reproduce:
1. create a repo with invlid/unsupported url like "https://bugzilla.redhat.com/show_bug.cgi?id=1962140" or "https://galaxy.ansible.com/theforeman/foreman"
Actual results:
You get the error notification that is hard to read
"Task 01f9f6dc-c14a-4e10-af16-b76c3519efc7: PulpAnsibleClient::ApiError: Error message: the server returns an error HTTP status code: 400 Response headers: {"Date"=>"Fri, 11 Jun 2021 14:35:19 GMT", "Server"=>"gunicorn/20.0.4", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, POST, HEAD, OPTIONS", "X-Frame-Options"=>"SAMEORIGIN", "Content-Length"=>"114", "Correlation-ID"=>"f4fe9ca8-6b9d-4b24-b9a8-575546119710", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 foreman-nuc2.example.com", "Connection"=>"close"} Response body: {"non_field_errors":["Invalid URL https://bugzilla.redhat.com/show_bug.cgi?id=1962140. Ensure the URL ends '/'."]}"
Fixing the URL does not help now, since the repository is already created, now I'm getting invalid name issue which if I don't know what happend is hard to explain. After changing the name and fixing the URL (adding trailing slash) it's created but I still see the cryptic error toast notification.
Expected results:
It tells me the URL is invalid, bonus points for mentioning the trailing / or even fixing it for me.
It should not create the semi-functional repository that I can't delete.