Skip to content

[release/11.0] Correct NTLM server test availability on iOS - #138117

Merged
lewing merged 1 commit into
dotnet:release/11.0from
rzikm:rzikm/ios-ntlm-backport-11
Nov 24, 2026
Merged

lewing merged 1 commit into
dotnet:release/11.0from
rzikm:rzikm/ios-ntlm-backport-11

Conversation

@rzikm

@rzikm rzikm commented Nov 23, 2026

Copy link
Copy Markdown
Member

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 in UnknownCredentials instead of ContinueNeeded.

release/11.0 also lacks the earlier MacCatalyst correction (#137410). OperatingSystem.IsIOS() returns true for both iOS and MacCatalyst, so this minimal backport covers both without adding a redundant IsMacCatalyst() 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 subst path to this checkout:

  • V:\build.cmd clr+libs -rc release — clean baseline passed, 0 warnings and 0 errors.
  • From the checkout root: .\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 three ServerPackage_Supported_NTLM inputs (Negotiate, NTLM, nTlM) passed. This uses the Windows helper, not the modified Unix helper.
  • From a scratch source-linked capability-probe project: 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.

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 <[email protected]>
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@azure-pipelines

Copy link
Copy Markdown
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.

@rzikm

rzikm commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Test-only change => tell-mode

@rzikm rzikm added the Servicing-approved Approved for servicing release label Nov 23, 2026
@rzikm
rzikm requested a review from a team November 23, 2026 14:13
@rzikm

rzikm commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

/ba-g Test figures are unrelated.

@lewing
lewing merged commit 08ab398 into dotnet:release/11.0 Nov 24, 2026
88 of 92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants