Fix on-prem detection for hybrid mailboxes; record Windows sidecar qualification - #896
Merged
Merged
Conversation
New Outlook on Mac reports accountType "office365" for a hybrid account whose mailbox actually lives on-prem — the value tracks the signed-in Entra identity, not the mailbox host. The old logic let a cloud accountType veto the endpoint evidence, misrouting such mailboxes to the Graph path (which cannot reach an on-prem mailbox). Only the positive "enterprise" ⇒ on-prem signal is now trusted; otherwise a non-Microsoft ewsUrl/restUrl host decides. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ynzg88ooDpkwtoJo9VtHP
Fills the Windows classic Outlook row of the TRANSPORT.md qualification matrix (WebView2 150, no PNA preflight, no loopback exemption or prompt needed). The macOS row remains pending; it is tracked separately (WKWebView blocks plain-http loopback as mixed content, requiring the HTTPS profile). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018ynzg88ooDpkwtoJo9VtHP
bdart
force-pushed
the
fix/exchange-onprem-hybrid-detection
branch
from
August 3, 2026 18:09
f806d61 to
5ea9e6d
Compare
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.
Two independent items split out of the
feature/ermain-503-addin-sidecar-thread-fetcherbranch (#892) so that PR stays focused on the sidecar fetcher. Both surfaced during Outlook-on-Mac testing.1. Bug fix — on-prem detection for hybrid mailboxes (
detectExchangeOnPrem)New Outlook on Mac reports
accountType: "office365"for a hybrid account whose mailbox actually lives on-prem — the value tracks the signed-in Entra identity, not the mailbox host. The previous logic let a cloudaccountTypeveto the endpoint evidence, so these mailboxes were misrouted to the Graph path, which cannot reach an on-prem mailbox.Fix: only the positive
"enterprise" ⇒ on-premsignal is trusted; otherwise a non-MicrosoftewsUrl/restUrlhost decides. Added a test asserting a non-MicrosoftewsUrlwins over a cloudaccountType; existing cases updated to use cloud endpoints so they still read as not-on-prem.vitest→ 11/11 pass.Independent of the sidecar work; belongs on
mainregardless.2. Docs — Windows classic Outlook transport qualification
Fills the Windows classic Outlook row of the
TRANSPORT.mdqualification matrix from live testing: WebView2 150, no Private-Network-Access preflight, no loopback exemption or permission prompt required. The macOS row stays pending and is tracked separately (WKWebView blocks plain-http loopback as mixed content — ERMAIN-522 adds the HTTPS profile).