RFR: 8263899: HttpClient throws NPE in AuthenticationFilter when parsing www-authenticate head [v3]
Daniel Fuchs
dfuchs at openjdk.java.net
Wed Mar 24 11:00:41 UTC 2021
On Mon, 22 Mar 2021 10:06:08 GMT, Michael McMahon <michaelm at openjdk.org> wrote:
>> Could I get the following simple fix reviewed please?
>>
>> The bug is jdk.internal.net.http.AuthenticationFilter throws an NPE wrapped in an IOException if it receives a HTTP response containing a WWW-Authenticate header with no value.
>>
>> Thanks,
>> Michael.
>
> Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:
>
> fix whitespace error
test/jdk/java/net/httpclient/EmptyAuthenticate.java line 63:
> 61: //run client:
> 62: try {
> 63: HttpClient httpClient = HttpClient.newHttpClient();
Hmmm... Does this happen even when there's no authenticator?
-------------
PR: https://git.openjdk.java.net/jdk/pull/3113
More information about the net-dev
mailing list