Hi,
when there's a proxy configured for a repository, with either proxy=<proxy_url>, or ?proxy=<proxy_url> appended to the baseurl, it's not being used for e.g. download.opensuse.org mirrors when redirected.
Steps to reproduce
system running openSUSE Leap 15.6
Configure repo with proxy
[openSUSE:Tools]
enabled=1
autorefresh=1
baseurl=https://download.opensuse.org/repositories/openSUSE:/Tools/${releasever}/
proxy=http://<proxy>:<port>
or
[openSUSE:Tools]
enabled=1
autorefresh=1
baseurl=https://download.opensuse.org/repositories/openSUSE:/Tools/${releasever}/?proxy=http://<proxy>:<port>
update repository metadata
zypper refresh
try installing/updating packages
zypper -vvv up / zypper -vvv install obs-service-snapcraft
Actual result
zypper tries to connect to the repository mirrors without any proxy. (?proxy parameter not present in URL in output)
Eventually, it falls back to the main URL with the proxy.
zypper.proxy_redirect.log
Expected result
zypper tries to connect to the repository mirrors with the proxy configured. (?proxy parameter present in URL in output)
Hi,
when there's a proxy configured for a repository, with either
proxy=<proxy_url>, or?proxy=<proxy_url>appended to thebaseurl, it's not being used for e.g.download.opensuse.orgmirrors when redirected.Steps to reproduce
system running openSUSE Leap 15.6
Configure repo with proxy
or
update repository metadata
zypper refreshtry installing/updating packages
zypper -vvv up/zypper -vvv install obs-service-snapcraftActual result
zypper tries to connect to the repository mirrors without any proxy. (
?proxyparameter not present in URL in output)Eventually, it falls back to the main URL with the proxy.
zypper.proxy_redirect.log
Expected result
zypper tries to connect to the repository mirrors with the proxy configured. (
?proxyparameter present in URL in output)