[Bug 344123] New: Yast does not follow http redirect code
https://bugzilla.novell.com/show_bug.cgi?id=344123 Summary: Yast does not follow http redirect code Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: luizluca@tre-sc.gov.br QAContact: jsrain@novell.com Found By: --- This response $ curl -I http://download.opensuse.org/YaST/Repos/openSUSE_103_Servers.xml HTTP/1.0 302 Moved Temporarily Server: squid/2.6.STABLE6 Date: Mon, 26 Nov 2007 20:02:52 GMT Content-Type: text/html Content-Length: 0 Expires: Mon, 26 Nov 2007 20:02:52 GMT Location: http://repositorio.tre-sc.gov.br/suse/suse10.3/servers.xml Via: 1.0 ita Proxy-Connection: keep-alive is not treated by yast. I think that /modules/HTTP.ycp global define map Get(string url, string output) ``{ y2debug("URL: %1", url); map response = (map) SCR::Execute(.curl.get, url, $["output":output]); return response; } should treat codes like 301 and 302. It can return redirect code for i.e. config update but it should also correctly download the files. This is what happens. [YCP] clients/inst_productsources.ycp:332 Got link: http://download.opensuse.org/YaST/Repos/openSUSE_103_Servers.xml [YCP] clients/inst_productsources.ycp:340 Using link: http://download.opensuse.org/YaST/Repos/openSUSE_103_Servers.xml [agent-curl] CurlAgent.cc(Execute):217 Data: [agent-curl] CurlAgent.cc(Execute):218 Output: /tmp/YaST2-20294-27KfN3/inst_productsources_downloadfile [agent-curl] CurlAgent.cc(Get):114 curl returned -> response code: 302, total size: 0, total time 0.010386, content type: text/html [YCP] clients/inst_productsources.ycp:382 Server response: $["code":302, "content-type":"text/html", "dsize":0., "totaltime":0.010386] [YCP] XML.ycp:120 XML file /tmp/YaST2-20294-27KfN3/inst_productsources_downloadfile (0) not found [YCP] clients/inst_productsources.ycp:405 XML file is empty [YCP] clients/inst_productsources.ycp:474 Unable to parse list of servers [YCP] clients/inst_productsources.ycp:648 Cannot download or parse repositories [YCP] Report.ycp:431 Unable to download list of repositories -- 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=344123
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=344123
User meissner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=344123#c7
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=344123
User ug@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=344123#c8
Uwe Gansert
https://bugzilla.novell.com/show_bug.cgi?id=344123
Luiz Angelo Daros de Luca
participants (1)
-
bugzilla_noreply@novell.com