Repository navigation
[release/11.0] Correct NTLM server test availability on iOS - #138117
Merged
Merged
Conversation
Backport of dotnet#137801 (6f7daef). Adapted for release/11.0, which lacks dotnet#137410: IsIOS also covers MacCatalyst, so a separate MacCatalyst exclusion is unnecessary. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
|
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones |
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Open
3 tasks
This was referenced Nov 23, 2026
Member
Author
|
Test-only change => tell-mode |
lewing
approved these changes
Nov 23, 2026
Member
Author
|
/ba-g Test figures are unrelated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Issue N/A. Related tracking issue: #137733; this test-only backport does not close it.
main PR #137801
Description
Adapted backport of #137801 (6f7daef): exclude iOS from
Capability.IsNtlmServerAvailable(). Apple GSS advertises NTLM but does not provide the default NTLM acceptor credentials needed by these server tests, resulting inUnknownCredentialsinstead ofContinueNeeded.release/11.0also lacks the earlier MacCatalyst correction (#137410).OperatingSystem.IsIOS()returns true for both iOS and MacCatalyst, so this minimal backport covers both without adding a redundantIsMacCatalyst()check. The comment matches the upstream Apple-platform wording. No product code or assertions change.Customer Impact
No product behavior change. Without the correction, release-branch Apple test runs can report authentication failures for a server capability the platform cannot provide, reducing CI signal.
Regression
Test applicability correction, not a product regression fix. The release branch's shared helper excludes macOS but incorrectly reports iOS and MacCatalyst NTLM server availability.
Testing
Validation performed on Windows using a short
substpath to this checkout:V:\build.cmd clr+libs -rc release— clean baseline passed, 0 warnings and 0 errors..\dotnet.cmd build src\libraries\System.Net.Security\tests\UnitTests\System.Net.Security.Unit.Tests.csproj /t:Test /p:RuntimeConfiguration=Release— passed; 124 total, 120 passed, 4 skipped, 0 failed. All threeServerPackage_Supported_NTLMinputs (Negotiate,NTLM,nTlM) passed. This uses the Windows helper, not the modified Unix helper.dotnet run --project CapabilityProbe.csproj— before the fix, failed exactly the iOS-device, iOS-simulator and MacCatalyst cases (3 failures out of 10); after the fix, all 10 cases passed. The project compiles this checkout's actual Unix helper with simulated OS/native inputs and checks capability results and native-call counts for iOS, MacCatalyst, macOS, Linux, browser, WASI and missing-library behavior. This is a simulation, not Apple runtime validation.git diff --check— passed before commit.Apple device/simulator and MacCatalyst execution were not available locally and have not been performed. No claim is made that Windows tests validate Apple GSS behavior.
Risk
Low: one shared test helper and its comment change. Unsupported Apple NTLM-server tests are no longer selected; client capability detection, product authentication behavior, assertions, and non-Apple capability logic remain unchanged. No public API or breaking-change documentation is involved.
Package authoring no longer needed in .NET 9
IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.
Note
This backport and PR description were prepared with GitHub Copilot.