hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HTTPCLIENT-936) NullPointerException in NegotiateScheme
Date Tue, 11 May 2010 20:14:43 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-936?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski updated HTTPCLIENT-936:
-----------------------------------------

    Fix Version/s: 4.1 Alpha2

Fantastic! Works (or rather does not work) like a charm! I love test cases! Working on a fix

Oleg 

> NullPointerException in NegotiateScheme
> ---------------------------------------
>
>                 Key: HTTPCLIENT-936
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-936
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpAuth
>    Affects Versions: 4.1 Alpha1
>         Environment: JDK1.6
>            Reporter: Francois Rigault
>             Fix For: 4.1 Alpha2
>
>         Attachments: HTTPCLIENT-936.patch, patchAddUnitTestsForNegotiateScheme.txt, patchCommonsApi.txt
>
>
> - server is configured to allow client to authenticate with kerberos with principal foobar
> - client, using httpclient with a registered authscheme SPNEGO set as a NegotiateSchemeFactory
> - when the client authenticate with the (correct) principal foobar, it works !
> - when the client authenticate with the (wrong) principal fooba, it fails with a NPE
below.
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.commons.codec.binary.Base64.encodeBase64(Base64.java:233)
> 	at org.apache.commons.codec.binary.Base64.encode(Base64.java:521)
> 	at org.apache.http.impl.auth.NegotiateScheme.authenticate(NegotiateScheme.java:240)
> 	at org.apache.http.client.protocol.RequestTargetAuthentication.process(RequestTargetAuthentication.java:99)
> 	at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:108)
> 	at org.apache.http.protocol.HttpRequestExecutor.preProcess(HttpRequestExecutor.java:167)
> 	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:460)
> 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:689)
> 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:624)
> 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:602)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message