|
List Info
Thread: Comeback of auth httpproxy problem
|
|
| Comeback of auth httpproxy problem |

|
2007-02-02 05:32:55 |
|
Hi, all.
I am again about 'using rubygems behind authenticated proxy' problem.
Some time ago this problem was fixed in SVN and I (and other people) start using rubygems in corporate environment.
But with 0.9.1 release I've got several responses that it does not work anymore. People start receiving PROXY AUTHENTICATION ERROR again.
I dig into this problem and found that it happens because new version of rubygems do not contain open-uri library. And current version uses open-uri from standard package.
But unfortunately open-uri in 1.8.4 has lack of authenticated proxy support. It does not takes into account username and password passed in url parameter. This bug was fixed in 1.9.x ruby branch and we have ability to use proxy_http_basic_authentication parameter.
So my patch that fixes this problem includes required changes to Rubygems code + open-uri library from 1.9 branch. I've just check it for corporate firewall and it works well.
-- anatol (
http://feeds.feedburner.com/apomozov-eng)
|
|
| Re: Comeback of auth httpproxy problem |

|
2007-02-02 06:36:45 |
On 2/2/07, Anatol Pomozov <anatol.pomozov gmail.com> wrote:
> I dig into this problem and found that it happens
because new version of
> rubygems do not contain open-uri library. And current
version uses open-uri
> from standard package.
Thanks. As I am now working behind a corporate firewall of
superhuman
strength, I appreciate this patch. Now, if we could get it
to work
with a proxy using NTLM authentication, even I would be
happy.
This is a easy thing to miss. I will put a challenge out
there for
someone to come up with a good test of the proxy
functionality so that
we don't accidently lose this feature again.
--
--
-- Jim Weirich jim weirichhouse.org http://onestepback.org
------------------------------------------------------------
-----
"Beware of bugs in the above code; I have only proved
it correct,
not tried it." -- Donald Knuth (in a memo to Peter van
Emde Boas)
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
|
|
| Re: Comeback of auth httpproxy problem |

|
2007-02-03 22:12:40 |
On 2/2/07, Jim Weirich <jim.weirich gmail.com> wrote:
> On 2/2/07, Anatol Pomozov <anatol.pomozov gmail.com> wrote:
> > I dig into this problem and found that it happens
because new version of
> > rubygems do not contain open-uri library. And
current version uses open-uri
> > from standard package.
Ok, I have committed the open-uri with user/password support
patch
into the trunk.
--
-- Jim Weirich jim weirichhouse.org http://onestepback.org
------------------------------------------------------------
-----
"Beware of bugs in the above code; I have only proved
it correct,
not tried it." -- Donald Knuth (in a memo to Peter van
Emde Boas)
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
|
|
| Re: Comeback of auth httpproxy problem |

|
2007-02-03 22:21:14 |
On 2/3/07, Jim Weirich <jim.weirich gmail.com> wrote:
> On 2/2/07, Jim Weirich <jim.weirich gmail.com> wrote:
> > On 2/2/07, Anatol Pomozov <anatol.pomozov gmail.com> wrote:
> > > I dig into this problem and found that it
happens because new version of
> > > rubygems do not contain open-uri library. And
current version uses open-uri
> > > from standard package.
>
> Ok, I have committed the open-uri with user/password
support patch
> into the trunk.
Anatol ... could you check this out when you get a chance.
Thanks.
--
--
-- Jim Weirich jim weirichhouse.org http://onestepback.org
------------------------------------------------------------
-----
"Beware of bugs in the above code; I have only proved
it correct,
not tried it." -- Donald Knuth (in a memo to Peter van
Emde Boas)
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
|
|
| Re: Comeback of auth httpproxy problem |

|
2007-02-03 23:47:31 |
|
Hi, Jim.
On 2/2/07, Jim Weirich < jim.weirich gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jim.weirich gmail.com> wrote:
On 2/2/07, Anatol Pomozov < anatol.pomozov gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anatol.pomozov gmail.com> wrote: > I dig into this problem and found that it happens because new version of
> rubygems do not contain open-uri library. And current version uses open-uri
> from standard package.
Thanks. As I am now working behind a corporate firewall of superhuman strength, I appreciate this patch. Now, if we could get it to work with a proxy using NTLM authentication, even I would be happy.
AFAIK most of the corporate proxies support several authentication methods. My corporate firewall uses Basic, NTLM, Digest.
If you are trying to add NTLM proxy support you should look into Net:HTTP package, cause open-uri uses it.
This is a easy thing to miss. I will put a challenge out there for someone to come up with a good test of the proxy functionality so that
we don't accidently lose this feature again. I'll try to write at least simple test. But I am not sure how to implement 'good test for the proxy functionality'.
|
| Re: Comeback of auth httpproxy problem |

|
2007-02-03 23:45:00 |
Hi, Jim.
On 2/4/07, Jim Weirich <jim.weirich gmail.com> wrote:
> On 2/3/07, Jim Weirich <jim.weirich gmail.com> wrote:
> > On 2/2/07, Jim Weirich <jim.weirich gmail.com> wrote:
> > > On 2/2/07, Anatol Pomozov
<anatol.pomozov gmail.com> wrote:
> > > > I dig into this problem and found that
it happens because new version of
> > > > rubygems do not contain open-uri
library. And current version uses open-uri
> > > > from standard package.
> >
> > Ok, I have committed the open-uri with
user/password support patch
> > into the trunk.
>
> Anatol ... could you check this out when you get a
chance. Thanks.
Right now I am unable to do it. But I'll check it at Monday
when I'll
be in the office.
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-develope
rs
|
|
[1-6]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|