CDN path verification should handle redirects
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.
Fixes #5574 - consider 301 as correct response for the cdn path
But check for `repodata/` instead of `repodata` as that's what we want
in the first place.
#1 Updated by Justin Sherrill about 8 years ago
To temporarily patch the issue:
Change: is_valid = valid_path?(real_path, 'repodata') || valid_path?(real_path, 'PULP_MANIFEST') To: is_valid = valid_path?(real_path, 'repodata/repomd.xml') || valid_path?(real_path, 'PULP_MANIFEST')