[11u] RFR: JDK-8236859 backport: WebSocket over authenticating proxy fails with NPE
Doerr, Martin
martin.doerr at sap.com
Mon Apr 12 15:45:47 UTC 2021
Hi all,
unfortunately, this backport seems to cause many test failures:
java/net/httpclient/websocket/WebSocketProxyTest.java
java/net/httpclient/websocket/WebSocketTest.java
java/net/httpclient/whitebox/AuthenticationFilterTestDriver.java
java/net/httpclient/BasicAuthTest.java
java/net/httpclient/DigestEchoClient.java
java/net/httpclient/DigestEchoClientSSL.java
java/net/httpclient/MultiAuthTest.java
java/net/httpclient/ProxyAuthDisabledSchemes.java
java/net/httpclient/ProxyAuthDisabledSchemesSSL.java
java/net/httpclient/UnauthorizedTest.java
With error messages like:
Error. can't find jdk.test.lib.net.SimpleSSLContext in test directory or libraries
Sent 401 Authentication response java.nio.channels.SocketChannel[connected local=/127.0.0.1:40237 remote=/127.0.0.1:53354]
Error in connection: java.nio.channels.SocketChannel[connected local=/127.0.0.1:40237 remote=/127.0.0.1:53354], java.io.IOException: Bad request:[]
Does anybody know what is going wrong?
Best regards,
Martin
> -----Original Message-----
> From: jdk-updates-dev <jdk-updates-dev-retn at openjdk.java.net> On
> Behalf Of Hohensee, Paul
> Sent: Freitag, 26. März 2021 22:53
> To: Ilarion Nakonechnyy <ilarion at azul.com>; jdk-updates-
> dev at openjdk.java.net
> Subject: RE: [11u] RFR: JDK-8236859 backport: WebSocket over
> authenticating proxy fails with NPE
>
> Lgtm, except in HttpResponseImpl.java, the new closeRawChannel method
> looks like it needs its indentation fixed.
>
> In AuthenticationFilter.java, "return null" is in the scope of
> "PROXY_AUTHORIZED" rather than the scope of "UNAUTHORIZED". That's
> what I'd expect from looking at the existing 11u code, but the original patch
> does more checking later on. There may be more backports that should be
> done to incorporate that checking.
>
> Thanks,
> Paul
>
> -----Original Message-----
> From: jdk-updates-dev <jdk-updates-dev-retn at openjdk.java.net> on
> behalf of Ilarion Nakonechnyy <ilarion at azul.com>
> Date: Friday, March 26, 2021 at 1:26 PM
> To: "jdk-updates-dev at openjdk.java.net" <jdk-updates-
> dev at openjdk.java.net>
> Subject: FW: [11u] RFR: JDK-8236859 backport: WebSocket over
> authenticating proxy fails with NPE
>
> Dear Sirs, kindly reminder about following review request.
>
> From: Ilarion Nakonechnyy <ilarion at azul.com>
> Date: Friday, 19 February 2021, 21:18
> To: "jdk-updates-dev at openjdk.java.net" <jdk-updates-
> dev at openjdk.java.net>
> Subject: [11u] RFR: JDK-8236859 backport: WebSocket over authenticating
> proxy fails with NPE
>
>
> Dear sirs, I’d like to backport JDK-8236859 to JDK11.
>
> The bug causes jtreg test
> java/net/httpclient/websocket/WebSocketProxyTest.java to fail with
> timeout.
> Was caught on x86_64 platform, but seems that it’s platform independent.
>
> Patch applied unclear, manually merged files
> src/java.net.http/share/classes/jdk/internal/net/http/AuthenticationFilter.j
> ava and
> src/java.net.http/share/classes/jdk/internal/net/http/HttpResponseImpl.jav
> a
> Jdk was built on Ubuntu x86_64 and tested with tier1
>
> Could you please review my changes?
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8236859
> Webrev: http://cr.openjdk.java.net/~yan/8236859/webrev.11.0/
>
> Original change: https://hg.openjdk.java.net/jdk/jdk/rev/ed8e7bf32188
>
>
More information about the jdk-updates-dev
mailing list