[Ruby 1.9-Bug#4388] open-uriで環境変数http proxyを使うときに認証付きのProxyが使えません

チケット #4388 が更新されました。 (by あつし よしだ)

環境変数にパスワードを入れるかどうかは使用者の判断と責任ではないでしょうか。
不適切だと言うのであればユーザー名、パスワードのみを無視するのは挙動としておかしくないですか?
「認証があっても無くてもhttp_proxyを無視する」か「ユーザー名がはいっていた場合例外か警告を出す」としたほうが利用者の混乱が少なくなると思います。

2011$BG/(B2$B7n(B11$BF|(B12:59 $B$"$D$7(B [email protected](B
[email protected]:

$B%A%1%C%H(B #4388 $B$,99?7$5$l$^$7$?!#(B (by $B$"$D$7(B [email protected](B)

$B4D6-JQ?t$K%Q%9%o!<%I$rF~$l$k$+$I$&$+$O;HMQ<[email protected]$$G$O$J$$$G$7$g$&$+!#(B

$BITE,@[email protected][email protected]$&$N$G$"$l$P%f!<%6!!"%Q%9%o!<%I$N$_$rL5;k$9$k$N$O5sF0$H$7$F$*$+$7$/$J$$$G$9$+!)(B

$B$H$/$K$*$+$7$$$H$O;W$$$^$;$s!#(B
http_proxy $B$O(B URI $B$G$9$,!"(Bquery $B$d(B fragment
$B$J$IB>$K$bL5;k$9$k$H$3$m$O(B
$B$?$/$5$s$"$j$^$9!#(B

[email protected]$$$^$9!#(B

Tanaka A. said the following on 11/02/10 17:00:

$B%^%k%A%f!<%64D6-$K$*$$$F4D6-JQ?t$OB>?M$+$i8+$i$l$k$b$N$G$"$j!"(B
$B%Q%9%o!<%I$rF~$l$k$N$KE,@Z$J>l=j$G$O$J$$$N$G!"(B
$B$3$NJQ99$O<u$1F~$l$i$l$^$;$s!#(B

$B!V4D6-JQ?t$,B>?M$+$i8+$i$l$k!W$H$$$&$N$O(B OS
$B0MB8$G$O$J$$$G$7$g$&$+!#0lIt(B
$B$N(B OS
$B$G%;%-%e%j%F%#$,3NJ]$5$l$F$$$J$$$+$i$H$$$&$N$b8D?M$H$7$F$O0cOB46$,(B
$B$"$j$^$9!#(B

Linux $B$G$O8+$($J$$!)(B

$B$$$:$l$K$;$h%f!<%6$H$7$F$O4D6-JQ?t(B http_proxy
$B$N<h07$$$O0lHLE*$J%3%^%s%I(B
$B$KJo$C$FM_$7$$$H;W$&$N$G$9$,!#$3$&$$$&0U8+$b$"$k$H$$$&$3$H$G!#(B

#ruby-ja
@ircnet$B$G$b=P$F$$$^$7$?$,!"(Bwarning$B$r=PNO$7$J$,$i$b;HMQ$9$k$H$$$&$N$O$I$&$G$7$g$&$+!#(B
patch$B$b=q$-$^$7$?(B

2011/2/11 Tanaka A. [email protected]:

$B$^$D$b$H(B $B$f$-$R$m$G$9(B

In message “Re: [ruby-dev:43195] Re: [Ruby 1.9-Bug#4388]
open-uri$B$G4D6-JQ?t(Bhttp_proxy$B$r;H$&$H$-$KG’>ZIU$-$N(BProxy$B$,;H$($^$;$s(B”
on Fri, 11 Feb 2011 20:08:51 +0900, Mitsuru O. [email protected]
writes:

|Tanaka A. said the following on 11/02/10 17:00:
|> $B%^%k%A%f!<%64D6-$K$*$$$F4D6-JQ?t$OB>?M$+$i8+$i$l$k$b$N$G$"$j!"(B
|> $B%Q%9%o!<%I$rF~$l$k$N$KE,@Z$J>l=j$G$O$J$$$N$G!"(B
|> $B$3$NJQ99$O<u$1F~$l$i$l$^$;$s!#(B
|
|$B!V4D6-JQ?t$,B>?M$+$i8+$i$l$k!W$H$$$&$N$O(B OS $B0MB8$G$O$J$$$G$7$g$&$+!#0lIt(B
|$B$N(B OS $B$G%;%-%e%j%F%#$,3NJ]$5$l$F$$$J$$$+$i$H$$$&$N$b8D?M$H$7$F$O0cOB46$,(B
|$B$"$j$^$9!#(B

$B!V0lIt$N(BOS$B!W$G4m81$G$"$l$P:NMQ$7$J$$M}M3$H$7$F==J,[email protected]$H(B
$B;W$$$^$9$h!#(B

|$B$$$:$l$K$;$h%f!<%6$H$7$F$O4D6-JQ?t(B http_proxy $B$N<h07$$$O0lHLE*$J%3%^%s%I(B
|$B$KJo$C$FM_$7$$$H;W$&$N$G$9$,!#$3$&$$$&0U8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(B
$B$G$9!#(B

$BB>$N%"%W%j%1!<%7%g%s$K$D$$$F$O!"@_Dj%U%!%$%k$K5-=R$G$-$k$3$H$r4j$C$F$$$^$9!#(B

$B2.Ln$G$9!#(B

Yukihiro M. said the following on 11/02/11 21:20:

$B!V0lIt$N(BOS$B!W$G4m81$G$"$l$P:NMQ$7$J$$M}M3$H$7$F==J,[email protected]$H(B
$B;W$$$^$9$h!#(B

$B$=$&$$$&0U8+$b$"$k$H$O;W$$$^$9!#$J$K$,4m81$+$H$$$&$N$r%i%$%V%i%jB&$,7h$a(B
$B$k$+%f!<%6$,7h$a$k$+$H$$$&LdBj$G$b$"$j$^$9$,!#4D6-JQ?t$,B>$N%f!<%6$K8x3+(B
$B$5$l$k(B
OS$B!J(BBSD$B7O!)!K$G$b!“2q<R$J$I$G$O%m!<%+%k%f!<%6$K$O%W%m%-%7%5!<%P$N(B
$B%Q%9%o!<%I$rHkL)$K$9$kI,MW$,$J$$$H$3$m$b$”$k$H;W$$$^$9!#(B

$B!V0lHLE*$J%3%^%s%I!W$G$O4D6-JQ?t$K%Q%9%o!<%I$r$$$l$k7A$G(BHTTP
$B%W%m%-%7$rMxMQ$7$F$$$k$N$G$9$+!#$=$N!V0lHLE*$J%3%^%s%I!W$NNc(B
$B$r65$([email protected]$1$^$;$s$+!)(B

$B%0%0$C$?HO0O$G?=$7Lu$"$j$^$;$s$,!"0J2<$N$h$&$J%3%^%s%I$,BP1~$7$F$$$k$h$&(B
$B$G$9!#(B

$B%Q%1%C%H%-%c%W%A%c$G(B Proxy-Authorization:
$B%X%C%@Aw=P$r3NG’$7$?$b$N!’(B

$B!&(Bwget
http://www.gnu.org/software/wget/manual/html_node/Proxies.html#Proxies

$B!&(Bcurl

$B!&(BPerl LWP$B!J%3%^%s%I$G$O$"$j$^$;$s$,!K(B
LWP::UserAgent $B%*%V%8%’%/%H$N(B env_proxy
$B%a%=%C%I<B9T$G4D6-JQ?t$+$iFI$9~$(B

$B!&(Bapt-get
http://members.jcom.home.ne.jp/mitakelp/old/vineapt.html
Ubuntu 9.04 $B$K$F3NG’(B

Web $B$K5-=R$,$"$C$?$,<B:]$NF0:n$OL$3NG’$N$b$N!’(B

$B!&(BActive Perl PPM (Perl Package Module)
http://docs.activestate.com/activeperl/5.8/faq/ActivePerl-faq2.html#http_proxy

$B!&(Bgem
http://d.hatena.ne.jp/taiyo/20080401/p3

$B!&(Byum
$B!&(BGentoo emerge
http://d.hatena.ne.jp/ni_sky/20070617

2011$BG/(B2$B7n(B17$BF|(B16:13 [email protected]$"$D$7(B [email protected]:

[email protected];d$,[email protected]$H;W$C$?$N$O(Bcurl$B$d(Bwget$B$G$O<u$1F~$l$i$l$F$$$k$b$N$,(B
[email protected]$o$:$KL5;[email protected]$G$9!#(B
$BL5;k$9$k$K$7$F$b$;$a$F(Bwarning$B$r=P$9$H$$$&$3$H$OL5M}$J$N$G$7$g$&$+!)(B

$B2:$d$+$K0\9T$9$k$K$O7Y9p$O<YKb$J$s$8$c$J$$$G$9$+$M$’!#(B

[email protected]$"$D$7$G$9!#(B

Ruby$B$N%]%j%7!<$H$7$F4D6-JQ?t$K%Q%9%o!<%I$O=q$$$F$O$$$1$J$$$H$$$&$3$H$O$o$+$j$^$7$?!#(B
[email protected];d$,[email protected]$H;W$C$?$N$O(Bcurl$B$d(Bwget$B$G$O<u$1F~$l$i$l$F$$$k$b$N$,(B
[email protected]$o$:$KL5;[email protected]$G$9!#(B
$BL5;k$9$k$K$7$F$b$;$a$F(Bwarning$B$r=P$9$H$$$&$3$H$OL5M}$J$N$G$7$g$&$+!)(B

On Mon, 14 Feb 2011 13:00:27 +0900
Tanaka A. [email protected] wrote:

$BB>$N%"%W%j%1!<%7%g%s$K$D$$$F$O!"@_Dj%U%!%$%k$K5-=R$G$-$k$3$H$r4j$C$F$$$^$9!#(B

[$BEDCf(B $BE/(B][$B$?$J$+(B $B$"$-$i(B][Tanaka A.]


http://github.com/yalab

[email protected]$"$D$7(B [email protected]
http://ya-lab.org $B$"$J$?$N%O!<%H$K(Binject

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs