[Bug 623506] New: Yast/zypper constructs invalid GET request via proxy
http://bugzilla.novell.com/show_bug.cgi?id=623506 http://bugzilla.novell.com/show_bug.cgi?id=623506#c0 Summary: Yast/zypper constructs invalid GET request via proxy Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: SLES 11 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: dma_k@mail.ru QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=376817) --> (http://bugzilla.novell.com/attachment.cgi?id=376817) The file /etc/zypp/repos.d/OpenSuSE_11.2.repo User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.11) Gecko/20100701 Firefox/3.5.11 zypper constructs invalid URL for the GET request when proxy is defined. It appends the version using "@" symbol, thus making the URL non-valid. Reproducible: Always Actual Results: The resulting URL is: ftp://anonymous:yast@6.31.4@opensuse.hro.nl/... Expected Results: * zypper version is not used in URL * If authentication information is not provided, "anonymous:yast" is also skipped. Finally the URL should be: ftp://opensuse.hro.nl/... # cat /etc/SuSE-release SUSE Linux Enterprise Server 11 (x86_64) # strace -f -s256 zypper refresh write(3, "2010-07-19 16:20:05 <1> luu128d(1542) [zypp++] MediaCurl.cc(doGetFileCopy):1111 URL: ftp://opensuse.hro.nl/opensuse/distribution/11.2/repo/oss/content\n", 151) = 151 stat("/var/adm/mount/AP_0x00000001/content", 0x7fffce7af470) = -1 ENOENT (No such file or directory) open("/var/adm/mount/AP_0x00000001/content.new.zypp.qcP7jw", O_RDWR|O_CREAT|O_EXCL, 0600) = 5 .. connect(6, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("10.10.55.23")}, 16) = -1 EINPROGRESS (Operation now in progress) poll([{fd=6, events=POLLOUT}], 1, 59999) = 1 ([{fd=6, revents=POLLOUT}]) getsockopt(6, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 sendto(6, "GET ftp://anonymous:yast@6.31.4@opensuse.hro.nl/opensuse/distribution/11.2/repo/oss/content;type=i HTTP/1.1\r\nAuthorization: Basic YW5vbnltb3VzOnlhc3RANi4zMS40\r\nUser-Agent: ZYpp 6.31.4 (curl 7.19.0) sle-11-x86_64\r\nHost: opensuse.hro.nl:21\r\nAccept: */*\r\nProx"..., 374, MSG_NOSIGNAL, NULL, 0) = 374 poll([{fd=6, events=POLLIN|POLLPRI}], 1, 1000) = 1 ([{fd=6, revents=POLLIN}]) poll([{fd=6, events=POLLIN|POLLPRI}], 1, 0) = 1 ([{fd=6, revents=POLLIN}]) recvfrom(6, "HTTP/1.1 400 Bad Request\r\nCache-Control: no-cache\r\nPragma: no-cache\r\nContent-Type: text/html; charset=utf-8\r\nProxy-Connection: close\r\nConnection: close\r\nContent-Length: 705\r\n\r\n<HTML><HEAD>\n<TITLE>Request Error</TITLE>\n</HEAD>\n<BODY>\n<FONT face=\"Helvetica\">"..., 16384, 0, NULL, NULL) = 881 .. write(3, "2010-07-19 16:20:05 <3> luu128d(1542) [zypp] MediaCurl.cc(doGetFileCopy):1205 curl error: 22: The requested URL returned error: 400, temp file size 0 byte.\n", 156) = 156 write(3, "2010-07-19 16:20:05 <1> luu128d(1542) [zypp++] MediaCurl.cc(evaluateCurlCode):874 HTTP response: 400 (URL: ftp://opensuse.hro.nl/opensuse/distribution/11.2/repo/oss/content)\n", 174) = 174 write(3, "2010-07-19 16:20:05 <5> luu128d(1542) [zypp] Exception.cc(log):133 MediaCurl.cc(evaluateCurlCode):875 THROW: MediaCurl.cc(evaluateCurlCode):875: Download (curl) error for 'ftp://opensuse.hro.nl/opensuse/distribution/11.2/repo/oss/content':\n", 243) = 243 # cat /etc/sysconfig/proxy | egrep -v '^(#.*|)$' PROXY_ENABLED="yes" HTTP_PROXY="http://proxy:8080" HTTPS_PROXY="http://proxy:8080" FTP_PROXY="http://proxy:8080" GOPHER_PROXY="" NO_PROXY="localhost, 127.0.0.1" # env | grep proxy http_proxy=http://proxy:8080/ ftp_proxy=http://proxy:8080/ all_proxy=http://proxy:8080/ https_proxy=http://proxy:8080/ no_proxy=127.0.0.1,localhost # host proxy proxy.internal.org has address 10.10.55.23 # rpm -qa | egrep '(zypper|yast2-packager)' zypper-1.3.7-0.2.1 yast2-packager-2.17.78-0.2.6 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=623506 https://bugzilla.novell.com/show_bug.cgi?id=623506#c1 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |dmacvicar@novell.com --- Comment #1 from Duncan Mac-Vicar <dmacvicar@novell.com> 2011-03-18 12:24:56 UTC --- Can you reproduce this in 11.4? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=623506 https://bugzilla.novell.com/show_bug.cgi?id=623506#c Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=623506 https://bugzilla.novell.com/show_bug.cgi?id=623506#c2 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WORKSFORME --- Comment #2 from Michael Andres <ma@novell.com> 2011-07-26 09:46:44 CEST --- can't reproduce this -- 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.
participants (1)
-
bugzilla_noreply@novell.com