Bug #8979
closedgem のプロキシ認証情報に @ を含むとエラー
Description
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
また、%エンコーディングされる文字を含んでいる場合は、デコードしないで認証を試みるので、認証が失敗してしまいます。
添付のパッチで直ると思います。
Files
Updated by hsbt (Hiroshi SHIBATA) about 11 years ago
- Category set to lib/rubygems
- Assignee set to kou (Kouhei Sutou)
Updated by kou (Kouhei Sutou) about 11 years ago
RubyGemsのmasterではそこらへんのコードが変わっているので、いい感じにして直しておきます!
Updated by kou (Kouhei Sutou) about 11 years ago
- Status changed from Open to Assigned
Updated by drbrain (Eric Hodel) about 11 years ago
I have fixed this here on RubyGems master:
https://github.com/rubygems/rubygems/commit/c355880f2016597b3f0f632fbcdc688313052009
I will apply this patch to RubyGems 2.0 branch, release it and create a backport request for the new version on Monday (Pacific Time).
Updated by drbrain (Eric Hodel) about 11 years ago
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.
Updated by drbrain (Eric Hodel) about 11 years ago
This bug was fixed by r43298
Updated by drbrain (Eric Hodel) about 11 years ago
- Status changed from Assigned to Closed