Skip to content

[Android] Some System.Net.Security tests are failing #68206

Closed

Description

@simonrozsival

The following System.Net.Security tests are failing on Android:

  • CertificateValidationClientServer.CertificateSelectionCallback_DelayedCertificate_OK
  • ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails
  • SslStreamAlpnTest_Async.SslStream_StreamToStream_Alpn_NonMatchingProtocols_Fail
  • SslStreamAlpnTest_Sync.SslStream_StreamToStream_Alpn_NonMatchingProtocols_Fail
  • SslStreamNetworkStreamTest.SslStream_TargetHostName_Succeeds
  • SslStreamNetworkStreamTest.SslStream_ServerUntrustedCaWithCustomTrust_OK
  • SslStreamNetworkStreamTest.SslStream_ClientCertificate_SendsChain
  • SslStreamNetworkStreamTest.SslStream_ClientCertificateContext_SendsChain
  • SslStreamSniTest.SslStream_ClientSendsSNIServerReceives_Ok
  • SslStreamSniTest.SslStream_ServerCallbackNotSet_UsesLocalCertificateSelection
  • SslStreamSniTest.UnencodedHostName_ValidatesCertificate
  • TransportContextTest.TransportContext_ConnectToServerWithSsl_GetExpectedChannelBindings

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Apr 19, 2022
  2. removed
    untriagedNew issue has not been triaged by the area owner
    on Apr 21, 2022
  3. added this to the 7.0.0 milestone on Apr 21, 2022
  4. maraf commented on Jun 9, 2022

    @maraf
    Member

    Also System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback from #20220604.1

    System.Security.Authentication.AuthenticationException : Authentication failed, see inner exception.
    ---- Interop+AndroidCrypto+SslException : Exception of type 'Interop+AndroidCrypto+SslException' was thrown.
       at System.Net.Security.SslStream.<ForceAuthenticationAsync>d__144`1[[System.Net.Security.AsyncReadWriteAdapter, System.Net.Security, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].MoveNext()
       at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 120
    --- End of stack trace from previous location ---
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 90
       at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks, Int32 millisecondsTimeout) in /_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 55
       at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext) in /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs:line 198
       at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext) in /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs:line 199
       at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext) in /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs:line 199
       at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext) in /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs:line 199
       at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext) in /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs:line 199
    --- End of stack trace from previous location ---
    ----- Inner Stack Trace -----
    
  5. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Jun 9, 2022
  6. maraf commented on Jun 9, 2022

    @maraf
    Member
  7. maraf commented on Jun 9, 2022

    @maraf
    Member

    Moved to a separate issue as dug-out more details #70469

  8. removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Jun 9, 2022
  9. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Jul 4, 2022
  10. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Jul 18, 2022
  11. simonrozsival commented on Jul 20, 2022

    @simonrozsival
    MemberAuthor

    Most of the failing tests were fixed in #71385 but there are a few that will require further investigation and are possibly caused by missing functionality in Android PAL (#45741)

  12. modified the milestones: 7.0.0, 8.0.0 on Jul 20, 2022
  13. removed their assignment
    on Jul 21, 2022
  14. modified the milestones: 8.0.0, Future on Aug 8, 2023
  15. added
    in-prThere is an active PR which will close this issue when it is merged
    on Jul 3, 2024
  16. self-assigned this
    on Jul 9, 2024
  17. locked and limited conversation to collaborators on Aug 19, 2024
  18. modified the milestones: Future, 9.0.0 on Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Securitydisabled-testThe test is disabled in source code against the issuein-prThere is an active PR which will close this issue when it is mergedos-android

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions