From: "drbrain (Eric Hodel)" <drbrain@...7.net>
Date: 2013-10-15T07:36:50+09:00
Subject: [ruby-dev:47759]	[ruby-trunk - Bug #8979] gem のプロキシ認証情報に @ を含むとエラー


Issue #8979 has been updated by drbrain (Eric Hodel).


I have updated #9014 with RubyGems 2.0.12 which contains this fix.

I will update trunk after I fix a separate bug that would break RubyGems if imported.

You can also install RubyGems 2.1.9 (latest) which will fix this issue.
----------------------------------------
Bug #8979: gem のプロキシ認証情報に @ を含むとエラー
https://bugs.ruby-lang.org/issues/8979#change-42454

Author: tommy (Masahiro Tomita)
Status: Assigned
Priority: Normal
Assignee: kou (Kouhei Sutou)
Category: lib/rubygems
Target version: 
ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


gem 実行時に認証が必要なプロキシを通す場合、プロキシの認証IDまたはパスワードに「@」を含んでいるとエラーになってしまいます。

----
% http_proxy=http://localhost:8080 http_proxy_user='foo@bar' http_proxy_pass='xxx' gem list -r mysql

*** REMOTE GEMS ***

ERROR:  While executing gem ... (URI::InvalidComponentError)
    bad component(expected userinfo component or user component): foo@bar
----

また、%エンコーディングされる文字を含んでいる場合は、デコードしないで認証を試みるので、認証が失敗してしまいます。

添付のパッチで直ると思います。


-- 
http://bugs.ruby-lang.org/