Re: Authentication with multiple realms.
Alright. Thank you very much for the help! Currently JIRA (https://issues.apache.org/jira/browse/HTTPCLIENT) is down for maintenance but i'll open an issue when its back online. On Tue, Mar 25, 2014 at 12:02 PM, Oleg Kalnichevski wrote: > On March 25, 2014 10:55:20 AM CET, d_k wrote: > >Thank you very much for the support. :-) > > > >So it appears that upgrading httpclient won't solve this issue? > > > > This problem can be solved in 4.4 only, so you will have to upgrade no > matter what. > > Oleg > > - > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > >
Re: Authentication with multiple realms.
On March 25, 2014 10:55:20 AM CET, d_k wrote: >Thank you very much for the support. :-) > >So it appears that upgrading httpclient won't solve this issue? > This problem can be solved in 4.4 only, so you will have to upgrade no matter what. Oleg - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: Authentication with multiple realms.
Thank you very much for the support. :-) So it appears that upgrading httpclient won't solve this issue? On Tue, Mar 25, 2014 at 11:27 AM, Oleg Kalnichevski wrote: > On Tue, 2014-03-25 at 09:29 +0200, d_k wrote: > > Its looks like the first GET is challenged and the credentials are > provided > > but when executing the second GET the authentication is requested for a > > different realm but because the AuthState already had credentials they > were > > used. > > > > The member targetAuthState in DefaultRequestDirector holds the old > > credentials and although the realm changed they were not invalidated. > > > > The problem is that auth caches presently do not take auth realm into > account, which is wrong. > > Please raise a JIRA for this defect. > > Oleg > > > > > On Mon, Mar 24, 2014 at 10:11 PM, Oleg Kalnichevski >wrote: > > > > > On Mon, 2014-03-24 at 18:38 +0200, d_k wrote: > > > > I'm upgrading a Nutch plugin that used httpclient 3.x and because > Nutch > > > was > > > > already dependent on httpclient 4.1.1 I decided to avoid adding a new > > > > dependency on httpclient 4.3 and use the existing dependency on 4.1.1 > > > > > > > > > > > > > > I can take a look at the wire log tomorrow but I would strongly > > > recommend upgrading regardless. HttpClient authentication code has > > > undergone a fairly major rewrite in the 4.2 release. Upgrading at least > > > to the latest release in the 4.2 series would probably be necessary > > > anyway. > > > > > > Oleg > > > > > > > > > > On Mon, Mar 24, 2014 at 6:00 PM, Oleg Kalnichevski > > > > wrote: > > > > > > > > > On Mon, 2014-03-24 at 17:54 +0200, d_k wrote: > > > > > > Hello. > > > > > > > > > > > > I'm using httpclient-4.1.1 and i'm trying to authenticate with > > > different > > > > > > users on different realms but it seems to fail. > > > > > > > > > > Before I even start looking into this, is there a reason you are > not > > > > > using a newer version of HttpClient (preferably 4.3.x)? > > > > > > > > > > Oleg > > > > > > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > > > > > For additional commands, e-mail: > httpclient-users-h...@hc.apache.org > > > > > > > > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > > > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > > > > > > > > > - > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > >
Re: Authentication with multiple realms.
On Tue, 2014-03-25 at 09:29 +0200, d_k wrote: > Its looks like the first GET is challenged and the credentials are provided > but when executing the second GET the authentication is requested for a > different realm but because the AuthState already had credentials they were > used. > > The member targetAuthState in DefaultRequestDirector holds the old > credentials and although the realm changed they were not invalidated. > The problem is that auth caches presently do not take auth realm into account, which is wrong. Please raise a JIRA for this defect. Oleg > > On Mon, Mar 24, 2014 at 10:11 PM, Oleg Kalnichevski wrote: > > > On Mon, 2014-03-24 at 18:38 +0200, d_k wrote: > > > I'm upgrading a Nutch plugin that used httpclient 3.x and because Nutch > > was > > > already dependent on httpclient 4.1.1 I decided to avoid adding a new > > > dependency on httpclient 4.3 and use the existing dependency on 4.1.1 > > > > > > > > > > I can take a look at the wire log tomorrow but I would strongly > > recommend upgrading regardless. HttpClient authentication code has > > undergone a fairly major rewrite in the 4.2 release. Upgrading at least > > to the latest release in the 4.2 series would probably be necessary > > anyway. > > > > Oleg > > > > > > > On Mon, Mar 24, 2014 at 6:00 PM, Oleg Kalnichevski > > wrote: > > > > > > > On Mon, 2014-03-24 at 17:54 +0200, d_k wrote: > > > > > Hello. > > > > > > > > > > I'm using httpclient-4.1.1 and i'm trying to authenticate with > > different > > > > > users on different realms but it seems to fail. > > > > > > > > Before I even start looking into this, is there a reason you are not > > > > using a newer version of HttpClient (preferably 4.3.x)? > > > > > > > > Oleg > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > > > > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > > > > > > > > > > > > > > > - > > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > > > - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: Authentication with multiple realms.
Its looks like the first GET is challenged and the credentials are provided but when executing the second GET the authentication is requested for a different realm but because the AuthState already had credentials they were used. The member targetAuthState in DefaultRequestDirector holds the old credentials and although the realm changed they were not invalidated. On Mon, Mar 24, 2014 at 10:11 PM, Oleg Kalnichevski wrote: > On Mon, 2014-03-24 at 18:38 +0200, d_k wrote: > > I'm upgrading a Nutch plugin that used httpclient 3.x and because Nutch > was > > already dependent on httpclient 4.1.1 I decided to avoid adding a new > > dependency on httpclient 4.3 and use the existing dependency on 4.1.1 > > > > > > I can take a look at the wire log tomorrow but I would strongly > recommend upgrading regardless. HttpClient authentication code has > undergone a fairly major rewrite in the 4.2 release. Upgrading at least > to the latest release in the 4.2 series would probably be necessary > anyway. > > Oleg > > > > On Mon, Mar 24, 2014 at 6:00 PM, Oleg Kalnichevski > wrote: > > > > > On Mon, 2014-03-24 at 17:54 +0200, d_k wrote: > > > > Hello. > > > > > > > > I'm using httpclient-4.1.1 and i'm trying to authenticate with > different > > > > users on different realms but it seems to fail. > > > > > > Before I even start looking into this, is there a reason you are not > > > using a newer version of HttpClient (preferably 4.3.x)? > > > > > > Oleg > > > > > > > > > > > > - > > > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > > > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > > > > > > > > > - > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > >
Re: Authentication with multiple realms.
On Mon, 2014-03-24 at 18:38 +0200, d_k wrote: > I'm upgrading a Nutch plugin that used httpclient 3.x and because Nutch was > already dependent on httpclient 4.1.1 I decided to avoid adding a new > dependency on httpclient 4.3 and use the existing dependency on 4.1.1 > > I can take a look at the wire log tomorrow but I would strongly recommend upgrading regardless. HttpClient authentication code has undergone a fairly major rewrite in the 4.2 release. Upgrading at least to the latest release in the 4.2 series would probably be necessary anyway. Oleg > On Mon, Mar 24, 2014 at 6:00 PM, Oleg Kalnichevski wrote: > > > On Mon, 2014-03-24 at 17:54 +0200, d_k wrote: > > > Hello. > > > > > > I'm using httpclient-4.1.1 and i'm trying to authenticate with different > > > users on different realms but it seems to fail. > > > > Before I even start looking into this, is there a reason you are not > > using a newer version of HttpClient (preferably 4.3.x)? > > > > Oleg > > > > > > > > - > > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > > > > - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org
Re: Authentication with multiple realms.
I'm upgrading a Nutch plugin that used httpclient 3.x and because Nutch was already dependent on httpclient 4.1.1 I decided to avoid adding a new dependency on httpclient 4.3 and use the existing dependency on 4.1.1 On Mon, Mar 24, 2014 at 6:00 PM, Oleg Kalnichevski wrote: > On Mon, 2014-03-24 at 17:54 +0200, d_k wrote: > > Hello. > > > > I'm using httpclient-4.1.1 and i'm trying to authenticate with different > > users on different realms but it seems to fail. > > Before I even start looking into this, is there a reason you are not > using a newer version of HttpClient (preferably 4.3.x)? > > Oleg > > > > - > To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org > For additional commands, e-mail: httpclient-users-h...@hc.apache.org > >
Re: Authentication with multiple realms.
On Mon, 2014-03-24 at 17:54 +0200, d_k wrote: > Hello. > > I'm using httpclient-4.1.1 and i'm trying to authenticate with different > users on different realms but it seems to fail. Before I even start looking into this, is there a reason you are not using a newer version of HttpClient (preferably 4.3.x)? Oleg - To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org