Skip to content

Commit 78205f8

Browse files
committed
8384486: NTLM tests fail on Windows 11 and Windows Server 2025
Backport-of: 4d9e49a15f3e9f4f4f30a6b05e85fd4d32adc0cd
1 parent 4a85736 commit 78205f8

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

test/jdk/sun/net/www/protocol/http/NTLMHeadTest.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -22,8 +22,9 @@
2222
*/
2323

2424
/*
25-
* @test
25+
* @test id=default
2626
* @bug 8270290
27+
* @requires os.family != "windows"
2728
* @library /test/lib
2829
* @run main/othervm NTLMHeadTest SERVER
2930
* @run main/othervm NTLMHeadTest PROXY
@@ -48,6 +49,17 @@
4849
* include the body.
4950
*/
5051

52+
/*
53+
* @test id=windows
54+
* @bug 8270290
55+
* @comment Only run on specific Windows OS versions because NTLMv1 is no longer supported starting Windows 11 and Windows Server 2025
56+
* @requires os.family == "windows" & (os.name == "Windows 10" | os.name == "Windows Server 2016" | os.name == "Windows Server 2019" | os.name == "Windows Server 2022")
57+
* @library /test/lib
58+
* @run main/othervm NTLMHeadTest SERVER
59+
* @run main/othervm NTLMHeadTest PROXY
60+
* @run main/othervm NTLMHeadTest TUNNEL
61+
*/
62+
5163
import java.net.*;
5264
import java.io.*;
5365
import java.util.*;

test/jdk/sun/net/www/protocol/http/TestTransparentNTLM.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
* @bug 8225425
2727
* @summary Verifies that transparent NTLM (on Windows) is not used by default,
2828
* and is used only when the relevant property is set.
29-
* @requires os.family == "windows"
29+
* @comment Only run on specific Windows OS versions because NTLMv1 is no longer supported starting Windows 11 and Windows Server 2025
30+
* @requires os.family == "windows" & (os.name == "Windows 10" | os.name == "Windows Server 2016" | os.name == "Windows Server 2019" | os.name == "Windows Server 2022")
3031
* @library /test/lib
3132
* @run testng/othervm
3233
* -Dtest.auth.succeed=false

0 commit comments

Comments
 (0)