[Bug 227513] New: Missing username/password in $http_proxy and friends
https://bugzilla.novell.com/show_bug.cgi?id=227513 Summary: Missing username/password in $http_proxy and friends Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mludvig@logix.net.nz QAContact: qa@suse.de I need to supply username and password for my webproxy. Once set in Yast Proxy module it's supposed to be exported to http_proxy (and https_proxy, ftp_proxy) environment variables. Although the proxy hostname and port are exported as expected the username and password part is missing. I.e. instead of http_proxy=http://user:password@proxyhost:3128 I get only http_proxy=http://proxyhost:3128 which is of not much use for programs like wget. Indeed I set it up manually in .bashrc but I believe it should be done by Yast for me. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mludvig@logix.net.nz ------- Comment #1 from mhorvath@novell.com 2006-12-11 15:35 MST ------- Please attach your yast log files. http://en.opensuse.org/Bugs/YaST Thank you. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 mludvig@logix.net.nz changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |227511 Status|NEEDINFO |ASSIGNED Info Provider|mludvig@logix.net.nz | ------- Comment #2 from mludvig@logix.net.nz 2006-12-11 16:19 MST ------- How about trying it yourself instead of asking for needless yast logs, hm? It's perfectly reproducible and not difficult at all to verify ;-) You don't even need a proxy that requires authorization, all you have to do is to check the env variable after setting the proxy in YaST (and obviously logout && login again). Anyway, it appears that login/password is not available to ordinary users as yet therefore making this bug a dependency to bug #227511 -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 mludvig@logix.net.nz changed: What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn|227511 | ------- Comment #3 from mludvig@logix.net.nz 2006-12-11 16:39 MST ------- Actually it isn't a dependency because $http_proxy doesn't carry the login and password for root either. I suggest for /etc/profile.d/profile.sh around line 47 and below to check ~/.curlrc to see if there is a password available and pass it to $http_proxy if it was. That way even programs like wget that are not based on curl will have enough information to reach the net. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |kmachalkova@novell.com |screening@forge.provo.novell| |.com | Status|ASSIGNED |NEW -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513 kmachalkova@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|Network |Network Product|openSUSE 10.2 |openSUSE 10.3 Resolution| |LATER Version|Final |Alpha 0plus ------- Comment #4 from kmachalkova@novell.com 2007-02-09 14:36 MST ------- -> 10.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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227513#c5
--- Comment #5 from Steve Price
https://bugzilla.novell.com/show_bug.cgi?id=227513#c6
Steve Price
https://bugzilla.novell.com/show_bug.cgi?id=227513#c7
Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=227513#c8
Ján Kupec
This incorrect .curlrc issue should be now fixed (bug #305163), but I don't know if zypper checks this file for user/password. Jano, can you comment?
Yes, zypper (libzypp) reads it from $HOME/.curlrc. You can also specify it in the repository URL using URL parameters "proxyuser" and "proxypassword" (this actually takes preference over reading .curlrc). -- 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=227513#c9
--- Comment #9 from Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=227513#c10
Steve Price
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 (?)
-- 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=227513#c11
--- Comment #11 from Steve Price
https://bugzilla.novell.com/show_bug.cgi?id=227513#c12
--- Comment #12 from Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=227513#c13
Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=227513#c14
Christian Zoz
https://bugzilla.novell.com/show_bug.cgi?id=227513#c15
--- Comment #15 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=227513#c16
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=227513
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=227513#c18
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=227513#c19
Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=227513
User ro@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=227513#c20
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=227513
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=227513#c21
Katarina Machalkova
But I don't know of any application that would read USER/PASSWD from the environment, so an addition like this would only make sense if anyone was willing to add patches to at least the most common tools and browsers (mozilla,w3m,wget,curl,...)
Here are some apps that are able to read $http_proxy env. variable with user & password: * wget, lynx, (e)links, Konqueror * Firefox - but only after installing an extension: https://addons.mozilla.org/cs/firefox/addon/3896 As for the other apps, it is more easy to find out what does not work with $http_proxy with user/passwd (mplayer, git,...) than something that does :( Certainly YaST and libzypp (which is curl-based) ignore $http_proxy and read sysconfig and .curlrc directly. Maybe it makes sense to file a feature request. There already is one $http_proxy-related (FaTE #302377) -- 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=227513
User ro@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=227513#c22
Ruediger Oertel
participants (1)
-
bugzilla_noreply@novell.com