Bug #35582
closedACS - throw proper errors for ULN ACS URLs
Description
Trying to create a repo where product is added to an ACS throws the below error cause we only allow http and file protocol URLs. Need to add uln:// URLs as well.
Task 5d072ed4-c532-4885-8528-966cf5a53ec2: PulpRpmClient::ApiError: Error message: the server returns an error HTTP status code: 400 Response headers: {"date"=>"Fri, 30 Sep 2022 00:45:17 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, POST, HEAD, OPTIONS", "x-frame-options"=>"DENY", "content-length"=>"74", "x-content-type-options"=>"nosniff", "referrer-policy"=>"same-origin", "correlation-id"=>"80f3e362-6a91-4f19-a31a-e5dd173828c5", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 centos8-katello-devel-stable.example.com", "connection"=>"close"} Response body: {"remote":["Type for Remote 'uln_demo-5327813' does not match ACS type."]}; PulpRpmClient::ApiError: Error message: the server returns an error HTTP status code: 400 Response headers: {"date"=>"Fri, 30 Sep 2022 00:45:17 GMT", "server"=>"gunicorn", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, POST, HEAD, OPTIONS", "x-frame-options"=>"DENY", "content-length"=>"74", "x-content-type-options"=>"nosniff", "referrer-policy"=>"same-origin", "correlation-id"=>"80f3e362-6a91-4f19-a31a-e5dd173828c5", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 centos8-katello-devel-stable.example.com", "connection"=>"close"} Response body: {"remote":["Type for Remote 'uln_demo-5326375' does not match ACS type."]}