Skip to content

Configured proxy is not being used for repository mirrors when redirected #676

Description

@zeromind

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions