https://bugzilla.novell.com/show_bug.cgi?id=788763 https://bugzilla.novell.com/show_bug.cgi?id=788763#c0 Summary: zypper doesn't work with HTTP proxy with basic authentication Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: i586 OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: doerges@pre-sense.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0 Proxy support was configured via YaST. Hitting the test button in YaST showed everything to be working fine ("Proxy settings work correctly."). Calling 'zypper ref' does not work, however. It gives me a Error code: HTTP response: 407. 'zypper ref' *without* configuring a proxy does work fine. Using curl *with* the proxy works fine, too. zypper does extract the username from /root/.curlrc, but it apparently ignores the password. BTW, I feel that /root/.curlrc is a rather awkward place to store system wide proxy configuration. My expectation would be that a system wide configuration is available for normal users as well. Reproducible: Always Steps to Reproduce: 1. Configure proxy in YaST (URL, username, password) 2. zypper ref Actual Results: HTTP response: 407 Expected Results: Refreshed repository information. System information ------------------ zaxxon:~ # egrep -v '^($|#)' /etc/sysconfig/proxy PROXY_ENABLED="yes" HTTP_PROXY="http://10.9.0.103:3129/" HTTPS_PROXY="http://10.9.0.103:3129/" FTP_PROXY="" NO_PROXY="" zaxxon:~ # echo $http_proxy http://10.9.0.103:3129/ zaxxon:~ # cat /root/.curlrc # Changed by YaST2 module proxy 11/08/12 --proxy-user "wdsbasic:mypassword" --proxy "http://10.9.0.103:3129/" Using the proxy --------------- zaxxon:~ # curl http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/... CONTENTSTYLE 11 [...] KEY SHA256 3134346a088478994ea0932cd6114820bbfd62ea633120217766f6b5c4ef95d9 gpg-pubkey-9c800aca-4be01999.asc zaxxon:~ # zypper ref Download (curl) error for 'http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/...': Error code: HTTP response: 407 Error message: The requested URL returned error: 407 Abort, retry, ignore? [a/r/i/?] (a): ^C zaxxon:~ # /var/log/zypper.log ------------------- 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp] ProductFileReader.cc(parse):242 ---0 - /etc/products.d/baseproduct[_eF_] 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp] ProxyInfoLibproxy.cc(getProxyFactory):66 Build Libproxy Factory from /etc/sysconfig/proxy 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaCurl.cc(setupEasy):638 Proxy: 'http://10.9.0.103:3129' 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp] CurlConfig.cc(parseConfig):44 Going to parse /root/.curlrc 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] CurlConfig.cc(parseConfig):106 GOT: proxy-user 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] CurlConfig.cc(parseConfig):106 GOT: proxy 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] CurlConfig.cc(setParameter):178 Ignoring option proxy 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaCurl.cc(setupEasy):659 Proxy: using proxy-user from ~/.curlrc 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp] MediaCurl.cc(setupEasy):714 HEADER X-ZYpp-AnonymousId: 9bf1c0ef-6aa8-4730-aa55-bab8b4dd5024 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp] MediaCurl.cc(setupEasy):714 HEADER X-ZYpp-DistributionFlavor: dvd 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp] MediaCurl.cc(setupEasy):714 HEADER Pragma: 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp] MediaHandler.cc(attach):665 Attached: http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/... attached; localRoot "/var/adm/mount/AP_0x9QLzEj" 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaManager.cc(checkDesired):109 checkDesired(2): desired (report by zypp::media::NoVerifier) 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(2): desired (cached) 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(2): desired (cached) 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1266 dest: /var/adm/mount/AP_0x9QLzEj/content 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1267 temp: /var/adm/mount/AP_0x9QLzEj/content.new.zypp.ikPO4i 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaCurl.cc(doGetFileCopyFile):1343 /content 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaCurl.cc(doGetFileCopyFile):1353 URL: http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/... 2012-11-08 15:17:30 <3> zaxxon(4185) [zypp] MediaCurl.cc(doGetFileCopyFile):1417 curl error: 22: The requested URL returned error: 407, temp file size 0 bytes. 2012-11-08 15:17:30 <1> zaxxon(4185) [zypp++] MediaCurl.cc(evaluateCurlCode):970 HTTP response: 407 (URL: http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/...) 2012-11-08 15:17:30 <5> zaxxon(4185) [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):971 THROW: Download (curl) error for 'http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/...': 2012-11-08 15:17:30 <5> zaxxon(4185) [zypp] Exception.cc(log):137 Error code: HTTP response: 407 2012-11-08 15:17:30 <5> zaxxon(4185) [zypp] Exception.cc(log):137 Error message: The requested URL returned error: 407 Access Logs from Proxy (squid) ------------------------------ (curl, OK) 10.9.0.80:32855 -> 10.9.0.103:3129 || - wdsbasic wdsbasic - || [08/Nov/2012:15:16:40 +0100] "GET http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/... HTTP/1.1" 200 3021 "-" "curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.0e zlib/1.2.5 c-ares/1.7.5 libidn/1.22 libssh2/1.2.9" TCP_MEM_HIT:NONE (zypper ref, 407) 10.9.0.80:32856 -> 10.9.0.103:3129 || - - - - || [08/Nov/2012:15:17:31 +0100] "GET http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/... HTTP/1.1" 407 4217 "-" "ZYpp 10.4.5 (curl 7.22.0) openSUSE-12.1-i586" TCP_DENIED:NONE 10.9.0.80:32856 -> 10.9.0.103:3129 || - wdsbasic wdsbasic - || [08/Nov/2012:15:17:31 +0100] "GET http://myinternalmirror.intern.pre-sense.de/repositories/opensuse/12.1/repo/... HTTP/1.0" 407 4542 "-" "ZYpp 10.4.5 (curl 7.22.0) openSUSE-12.1-i586" TCP_DENIED:NONE -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.