[Bug 309139] New: Adjust MediaCurl.cc to new .curlrc syntax
https://bugzilla.novell.com/show_bug.cgi?id=309139#c305163 Summary: Adjust MediaCurl.cc to new .curlrc syntax Product: openSUSE 10.3 Version: Beta 3 Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: jkupec@novell.com ReportedBy: kmachalkova@novell.com QAContact: kkaempf@novell.com Found By: --- Due to fix of bug #305163 .curlrc syntax as written by yast proxy module has changed. Or better, it has been fixed because it never worked before, just nobody noticed so far :) Now sample .curlrc looks like this: --->cut<--- --proxy-user = "krtko:porn.bat" --proxy = "http://proxy:3128" --->cut<--- The fix should be pretty simple, just look for "--proxy-user" key (with leading --'s ) in the map you get from base::sysconfig::read( curlrcFile ) -- 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=309139#c1
Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=309139
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=309139#c2
Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=309139#c3
--- Comment #3 from Katarina Machalkova
From everything I've seen, it looks to me like zypper attempts to get the xml file via the proxy; the proxy requests authentication; zypper gives up (i.e. does not send proxy authentication response) thinking it's got a permanent error (?)"
I suggest to raise severity and/or make release managers aware of this issue, so that possible future online-update can be released, because it makes package management defunct for the users who have to use proxy authentication. -- 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=309139#c4
Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=309139#c5
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=309139#c6
--- Comment #6 from Maxim Vasilev
I think this is fine with an online update. I don't think this is very often used feature
This bug is Blocker for me and ~50 my Linux users and my 14 servers in LAN outside from proxy server. -- 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=309139
Maxim Vasilev
https://bugzilla.novell.com/show_bug.cgi?id=309139
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=309139#c8
--- Comment #8 from Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=309139#c9
--- Comment #9 from Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=309139
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=309139#c10
--- Comment #10 from Ján Kupec
Please note that online update is not possible in this case - not being able to authenticate to proxy makes package management stack defunct for users that are behind proxy that requires authentication. Thus, such user won't be able to download the patch fixing the bug.
Correct. Coolo, the fix is harmless, it should go into GM.
Workaround - add proxyuser and proxypassword as query strings to your URL, like this: http://some.server.net/pub/openSUSE/10.3?proxyuser=user?proxypassword=pass (Jano? Is that correct?)
Yup, that's correct. -- 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=309139#c13
Stanislav Visnovsky
https://bugzilla.novell.com/show_bug.cgi?id=309139#c15
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=309139#c16
--- Comment #16 from Steve Price
https://bugzilla.novell.com/show_bug.cgi?id=309139#c17
--- Comment #17 from Maxim Vasilev
Maxim, does the workaround in comment #8 work for you? I know it's not nice, but does it work?
Works on libzypp-3.26.0, but only if the password does not contain symbols "[, ], {, }" zypper addrepo "http://download.opensuse.org/repositories/openSUSE:10.3/standard?proxyuser=it\test&proxypassword=/[1]2{3}" "Main 10.3" Given URL is invalid. Invalid query string component 'proxyuser=it\test&proxypassword=/[1]2{3}' -- 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=309139#c18
--- Comment #18 from Ján Kupec
Invalid query string component 'proxyuser=it\test&proxypassword=/[1]2{3}'
Yes, since the password is part of a URL here, it has to be URL-encoded, i.e. the special characters have to be written in a hexadecimal form: ..proxyuser=it%5Ctest&proxypassword=%2F%5B1%5D2%7B3%7D However, since the problem of reading the --proxy-user string form ~/.curlrc has been fixed in libzypp 3.26.0, you can also try that. If a problem occurs with special characters, please open a new bug report. -- 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=309139#c19
--- Comment #19 from Ján Kupec
I've just tried the comment #8 fix. Although I was able to add the repository correctly (which I wasn't able to do before), now the refresh etc. commands still do not work:
hmm.. works for me: $ sudo src/zypper ar http://download.opensuse.org/update/10.3?proxyuser=www\&proxypassword=passwd proxy root's password: * Adding repository 'proxy' Repository 'proxy' successfully added: Enabled: Yes Autorefresh: Yes URL: http://download.opensuse.org/update/10.3?proxyuser=www&proxypassword=passwd $ sudo src/zypper refresh proxy Refreshing 'proxy' * Building repository 'proxy' cache Specified repositories have been refreshed. Please give it another try and if you still will have a problem, open a new bug report and attach zypper log (remove the old log before reproducing the problem). -- 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=309139#c20
--- Comment #20 from Steve Price
https://bugzilla.novell.com/show_bug.cgi?id=309139#c21
--- Comment #21 from Ján Kupec
Is libzypp 3.26.0 available as a package, or do I need to build my own libzypp+zypper from the subversion sources?
It should be available in the factory repository soon.
It was version libzypp 3.24.7-3 (the latest available in the repositories) that I tried, and failed.
The workaround in question should work also in 3.24.7. It's the ~/.curlrc parsing that has been fixed in 3.26.0. -- 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=309139#c22
--- Comment #22 from Steve Price
https://bugzilla.novell.com/show_bug.cgi?id=309139#c23
Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=309139#c24
--- Comment #24 from Angelo Compagnucci
https://bugzilla.novell.com/show_bug.cgi?id=309139#c25
Angelo Compagnucci
https://bugzilla.novell.com/show_bug.cgi?id=309139#c26
Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=309139#c27
--- Comment #27 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=309139#c28
--- Comment #28 from Angelo Compagnucci
https://bugzilla.novell.com/show_bug.cgi?id=309139#c29
Maxim Vasilev
https://bugzilla.novell.com/show_bug.cgi?id=309139#c30
--- Comment #30 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=309139#c31
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=309139#c32
--- Comment #32 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=309139#c33
Katarina Machalkova
participants (1)
-
bugzilla_noreply@novell.com