Project

General

Profile

Actions

Bug #5931

closed

CDN path verification should handle redirects

Added by Ivan Necas over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1099221
Description of problem:
Currently the cdn_var_substitutor#valid_substitutions? treats 301 redirects as an error. In some cases it will try to fetch $REPO_URL/repodata which causes a redirect to $REPO_URL/repodata/. One solution is to have it request $REPO_URL/repodata/repomd.xml, but i would argue it should just follow redirects as well.

Version-Release number of selected component (if applicable):
katello-1.5.0-22.el6sat.noarch
katello-ca-1.0-1.noarch
katello-certs-tools-1.5.5-1.el6sat.noarch
katello-installer-0.0.37-1.el6sat.noarch
pulp-katello-plugins-0.2-1.el6sat.noarch
ruby193-rubygem-katello-1.5.0-40.el6sat.noarch
rubygem-hammer_cli_katello-0.0.3-22.el6sat.noarch

How reproducible:
100%

Steps to Reproduce:
(1. Change the CDN URL to a local mirror)
2. Visit the Red Hat Repositories page
3. Try to select/enable a repository

Actual results:
Back-end errors

Expected results:
Repo should become enabled

Additional info:
http://projects.theforeman.org/issues/5574

Actions

Also available in: Atom PDF