Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

HTTP Proxy with Authentication not handled correctly #2761

Closed
tbuehlmann opened this issue Dec 18, 2013 · 3 comments
Closed

HTTP Proxy with Authentication not handled correctly #2761

tbuehlmann opened this issue Dec 18, 2013 · 3 comments

Comments

@tbuehlmann
Copy link
Contributor

Got into the situation having an HTTP Proxy with Authentication. The environment variable http_proxy was set correctly, but Bundler failed on installing with the source 'https://rubygems.org' with a Network error when fetching a gem and an HTTP Proxy Auth Error on 'http://rubygems.org'. Though I was able to install one gem per bundle install with the http-source before getting the error.

The error is reproducible and has to do with the HTTP Proxy username. In my case it contained an escaped @ character, a %40. When having that in the HTTP Proxy setting, Bundler will first use the correct setting and later (somehow) switch to the unescaped @-version.

Here's a gist to reproduce the error: https://gist.github.com/tbuehlmann/8023219

@tbuehlmann
Copy link
Contributor Author

This is caused by not escaping HTTP Proxy usernames and passwords in the vendored net/http/persistent library. It's fixed in the original code, so we need to vendor the new version.

@indirect
Copy link
Member

indirect commented Mar 1, 2014

Happy to accept a pull request to do that.

@tbuehlmann
Copy link
Contributor Author

Opened #2912, closing this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants