http://bugzilla.novell.com/show_bug.cgi?id=558539 http://bugzilla.novell.com/show_bug.cgi?id=558539#c0 Summary: zypper does not respect the environment variable http_proxy, but uses the settings in /etc/sysconfig/proxy Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: i586 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: richard.bos@xs4all.nl QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/4.2; Linux) KHTML/4.2.3 (like Gecko) SUSE Coming from a network with proxy to a network without proxy, zypper starts to fail to download files. Normally it is possible to use the environment variable http_proxy to network access possible again (not only for zypper, but many proxy using applications). However, zypper does not use this variable, see the for test below: test 1: http_proxy set and PROXY_ENABLED="yes" linux-geis:~ # grep -i ^proxy /etc/sysconfig/proxy; echo $http_proxy PROXY_ENABLED="yes" proxy.company.com:8000 linux-geis:~ # zyp ref Failed to download /content from http://download.opensuse.org/distribution/11.2/repo/non-oss Abort, retry, ignore? [a/r/i/?] (a): a This is as expected. test 2: http_proxy unset and PROXY_ENABLED="yes" linux-geis:~ # grep -i ^proxy /etc/sysconfig/proxy; echo $http_proxy PROXY_ENABLED="yes" linux-geis:~ # zyp ref Failed to download /content from http://download.opensuse.org/distribution/11.2/repo/non-oss Abort, retry, ignore? [a/r/i/?] (a): a This is unexpected: the variable http_proxy is not honoured. test 3: http_proxy unset and PROXY_ENABLED="no" linux-geis:~ # grep -i ^proxy /etc/sysconfig/proxy; echo $http_proxy PROXY_ENABLED="no" linux-geis:~ # zyp ref Repository 'openSUSE 11.2 non-oss' is up to date. Repository 'openSUSE 11.2 oss' is up to date. This is unexpected: zypper should not use the values in /etc/sysconfig/proxy directly. It should use the environment variable instead. test 4: http_proxy set and PROXY_ENABLED="no" linux-geis:~ # grep -i ^proxy /etc/sysconfig/proxy; echo $http_proxy PROXY_ENABLED="no" proxy.company.com:8000 linux-geis:~ # zyp ref Repository 'openSUSE 11.2 non-oss' is up to date. Repository 'openSUSE 11.2 oss' is up to date. This should fail: as the environment variable http_proxy is not respected. It was not until I found the underneath lines in /var/log/zypper.log: 2009-11-25 22:09:32 <1> linux-geis(7415) [zypp++] Sysconfig.cc(read):31 Load '/etc/sysconfig/proxy' 2009-11-25 22:09:32 <1> linux-geis(7415) [zypp] Sysconfig.cc(read):71 done reading '/etc/sysconfig/proxy' 2009-11-25 22:09:32 <1> linux-geis(7415) [zypp++] MediaCurl.cc(attachTo):523 Proxy: -none- That I understood the variable PROXY_ENABLED had to be altered. Reproducible: Always Steps to Reproduce: See details section above Actual Results: See details section above Expected Results: The environment variable http_proxy should be respected by zypper. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.