Skip to content

System.Net.Security.Tests ClientAsyncAuthenticate_MismatchProtocols_Fails on Server 2022 #65098

Closed
@runfoapp

Description

@runfoapp

Log: https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-faadee89bd794674a4/System.Net.Security.Tests/3/console.5430d545.log?%3Fsv%3D2019-07-07%26se%3D2022-03-01T10%253A03%253A37Z%26sr%3Dc%26sp%3Drl%26sig%3D7KaC%252FNNbfcddwp5hSAXuN8viAbBFoDJX%252B7goKB5UlE4%253D

It looks like a mix of still trying to use a protocol that is not available:

System.Net.Security.Tests.ServerNoEncryptionTest.ServerNoEncryption_ClientAllowNoEncryption_ConnectWithNoEncryption [FAIL]
    System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
    ---- System.ComponentModel.Win32Exception : The function requested is not supported
    Stack Trace:
    /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(403,0): at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/ServerNoEncryptionTest.cs(62,0): at System.Net.Security.Tests.ServerNoEncryptionTest.ServerNoEncryption_ClientAllowNoEncryption_ConnectWithNoEncryption()
    --- End of stack trace from previous location ---
    ----- Inner Stack Trace -----
    
System.Net.Security.Tests.ServerNoEncryptionTest.ServerNoEncryption_ClientNoEncryption_ConnectWithNoEncryption [FAIL]
    System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
    ---- System.ComponentModel.Win32Exception : The client and server cannot communicate, because they do not possess a common algorithm.
    Stack Trace:
    /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStream.Implementation.cs(349,0): at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/ServerNoEncryptionTest.cs(88,0): at System.Net.Security.Tests.ServerNoEncryptionTest.ServerNoEncryption_ClientNoEncryption_ConnectWithNoEncryption()

Getting a different exception type (because of the missing availability?):

System.Net.Security.Tests.ClientAsyncAuthenticateTest.ClientAsyncAuthenticate_MismatchProtocols_Fails(serverProtocol: Tls12, clientProtocol: Tls11, expectedException: typeof(System.Security.Authentication.AuthenticationException)) [FAIL]
    Assert.IsAssignableFrom() Failure
    Expected: typeof(System.Security.Authentication.AuthenticationException)
    Actual:   typeof(System.IO.IOException)
    Stack Trace:
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/ClientAsyncAuthenticateTest.cs(64,0): at System.Net.Security.Tests.ClientAsyncAuthenticateTest.ClientAsyncAuthenticate_MismatchProtocols_Fails(SslProtocols serverProtocol, SslProtocols clientProtocol, Type expectedException)
    --- End of stack trace from previous location ---
    Output:
    Server: Tls11; Client: Tls12
System.Net.Security.Tests.ClientAsyncAuthenticateTest.ClientAsyncAuthenticate_MismatchProtocols_Fails(serverProtocol: Tls11, clientProtocol: Tls12, expectedException: typeof(System.Security.Authentication.AuthenticationException)) [FAIL]
    Assert.IsAssignableFrom() Failure
    Expected: typeof(System.Security.Authentication.AuthenticationException)
    Actual:   typeof(System.ComponentModel.Win32Exception)
    Stack Trace:
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/ClientAsyncAuthenticateTest.cs(64,0): at System.Net.Security.Tests.ClientAsyncAuthenticateTest.ClientAsyncAuthenticate_MismatchProtocols_Fails(SslProtocols serverProtocol, SslProtocols clientProtocol, Type expectedException)
    --- End of stack trace from previous location ---
System.Net.Security.Tests.ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails(serverProtocol: Tls, clientProtocol: Tls12, expectedException: typeof(System.Security.Authentication.AuthenticationException)) [FAIL]
    Assert.IsAssignableFrom() Failure
    Expected: typeof(System.Security.Authentication.AuthenticationException)
    Actual:   typeof(System.TimeoutException)
    Stack Trace:
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs(63,0): at System.Net.Security.Tests.ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails(SslProtocols serverProtocol, SslProtocols clientProtocol, Type expectedException)

And the xunit exception for skipping a test being thrown and not caught during remote execution:

System.Net.Security.Tests.LoggingTest.EventSource_EventsRaisedAsExpected [FAIL]
    Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
    Stack Trace:
    
    Child exception:
        Microsoft.DotNet.XUnitExtensions.SkipTestException: Unstable on Windows 11
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamStreamToStreamTest.cs(79,0): at System.Net.Security.Tests.SslStreamStreamToStreamTest.SslStream_StreamToStream_Authentication_Success(X509Certificate serverCert, X509Certificate clientCert)
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/LoggingTest.cs(45,0): at System.Net.Security.Tests.LoggingTest.<>c.<EventSource_EventsRaisedAsExpected>b__1_1()
    /_/src/libraries/Common/tests/System/Diagnostics/Tracing/TestEventListener.cs(111,0): at System.Diagnostics.Tracing.TestEventListener.RunWithCallback(Action`1 handler, Action body)
    /_/src/libraries/System.Net.Security/tests/FunctionalTests/LoggingTest.cs(41,0): at System.Net.Security.Tests.LoggingTest.<>c.<EventSource_EventsRaisedAsExpected>b__1_0()
    
    Child process:
        System.Net.Security.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Net.Security.Tests.LoggingTest+<>c Void <EventSource_EventsRaisedAsExpected>b__1_0()

Runfo Tracking Issue: System.Net.Security.Tests ClientAsyncAuthenticate_MismatchProtocols_Fails on Server 2022

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1725527 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1725527 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1725527 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1725527 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1725527 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1725526 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1725526 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1725526 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1725526 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1725526 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1725526 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1725526 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1724240 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1724240 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1724240 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1724240 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1724240 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1724239 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1724239 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1724239 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1724239 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1724239 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1724239 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1724239 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723362 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1723361 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722985 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722985 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722985 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722985 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722985 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722984 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722409 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722409 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722409 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722409 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722409 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1722408 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x86-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py
1721997 runtime-extra-platforms Rolling net7.0-windows-Release-x64-CoreCLR_release-Windows.Amd64.Server2022.Open console.log core dump runclient.py

Displaying 100 of 1222 results

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
0 22 114

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions