Skip to content

[Android] Test failure: System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext #131920

Description

@matouskozak

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1540423
Build error leg or test failing: Android CoreCLR and NativeAOT - System.Net.Security.Unit.Tests - System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext

Affected legs:

  • android-arm Release AllSubsets_CoreCLR
  • android-arm64 Release AllSubsets_CoreCLR
  • android-x64 Release AllSubsets_CoreCLR
  • android-arm64 Release NativeAOT
  • android-x64 Release NativeAOT

Console log:

Error Details

[FAIL] System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext
System.PlatformNotSupportedException : An empty custom trust store is not supported on this platform.
   at System.Security.Cryptography.X509Certificates.ChainPal.AndroidCertPath.Initialize(ICertificatePal cert, X509Certificate2Collection extraStore, X509Certificate2Collection customTrustStore, X509ChainTrustMode trustMode)
   at System.Security.Cryptography.X509Certificates.X509Chain.Build(X509Certificate2 certificate, Boolean throwOnException)

This is a post-fix recurrence of the failure tracked by #104010 and fixed by #104016. The current test was added by #131758 and now fails across Android CoreCLR and NativeAOT legs.

Error Message

{
  "ErrorMessage": [
    "[FAIL] System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext",
    "System.PlatformNotSupportedException : An empty custom trust store is not supported on this platform."
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

This issue draft was prepared with GitHub Copilot assistance and reviewed by the submitting developer.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1540423
Error message validated: [[FAIL] System.Net.Security.Tests.SslAuthenticationOptionsTests.UpdateOptions_ServerCertificateContextProvided_DoesNotDisposeCallerContext System.PlatformNotSupportedException : An empty custom trust store is not supported on this platform.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/6/2026 7:18:44 AM UTC

Report

Build Repository Test Pull Request
1542078 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution
1540423 dotnet/runtime System.Net.Security.Unit.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 2 2

Metadata

Metadata

Assignees

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Net.Securityblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions