RFR: 8318599: HttpURLConnection cache issues leading to crashes in JGSS w/ native GSS introduced by 8303809

Nico Williams duke at openjdk.org
Mon Nov 27 22:44:08 UTC 2023


On Tue, 24 Oct 2023 15:33:34 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

> A test is not included here as it requires testing against real servers that aren't publicly accessible.

It would be nice if there were tests that spun up a test realm and KDC.  [MIT Kerberos](https://github.com/krb5/krb5) and [Heimdal](https://github.com/heimdal/heimdal) do that, so OpenJDK surely could also do that.  Indeed, `test/jdk/sun/security/krb5/auto/KDC.java` and `test/jdk/sun/security/krb5/auto/OneKDC.java` do just that -- I just found out about these, and I'm rather pleased with it.

A better reason to not include a test is that the bug is non-deterministic, so a test success wouldn't prove that the bug is fixed.  To test this there would have to be a way to induce 100% likelihood of hitting the original bug, and right not I'm not sure how one would do that.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16347#issuecomment-1828748599


More information about the net-dev mailing list