Skip to content

Avoid exception when ClientRealmName is null and IsolateRealmsConsistently is off#408

Merged
SteveSyfuhs merged 2 commits intodotnet:developfrom
MaximeKjaer:isolate-exception
Oct 13, 2025
Merged

Avoid exception when ClientRealmName is null and IsolateRealmsConsistently is off#408
SteveSyfuhs merged 2 commits intodotnet:developfrom
MaximeKjaer:isolate-exception

Conversation

@MaximeKjaer
Copy link
Contributor

What's the problem?

#397 throws an exception in GenerateServiceTicket if ClientRealmName is null and if NormalizeRealmsUppercase is set. This broke backwards compat.

ClientRealmName is only used under the IsolateRealmsConsistently, so it should be okay to pass a null value when the flag isn't set.

  • Bugfix
  • New Feature

What's the solution?

Only throw an exception if IsolateRealmsConsistently is set.

  • Includes unit tests
  • Requires manual test

What issue is this related to, if any?

None

@SteveSyfuhs SteveSyfuhs merged commit da52236 into dotnet:develop Oct 13, 2025
3 checks passed
@MaximeKjaer MaximeKjaer deleted the isolate-exception branch October 21, 2025 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants