Repository navigation
Conversation
a717fe4 to
6907e10
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 15, 2026, 2:24 AM ET / 06:24 UTC. Summary PR surface: Source +82, Tests +464. Total +546 across 4 files. Reproducibility: yes. from source, with high confidence: current main uses unbounded SharePoint and related Graph fetch lifecycles, while the controlled transport scenario demonstrates the exact stalls and socket-abort behavior after the fix. An authenticated Microsoft tenant reproduction was not available. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Retain the full-lifecycle, size-aware timeout implementation and merge only after the MS Teams owner explicitly accepts the 403-only organization-scope fallback contract and the exact head is refreshed against current main. Do we have a high-confidence way to reproduce the issue? Yes from source, with high confidence: current main uses unbounded SharePoint and related Graph fetch lifecycles, while the controlled transport scenario demonstrates the exact stalls and socket-abort behavior after the fix. An authenticated Microsoft tenant reproduction was not available. Is this the best way to solve the issue? Yes for the aborting, full-lifecycle, transfer-aware timeout design; the 403-only fallback is the safest least-privilege policy, but its deliberate availability tradeoff still requires explicit owner acceptance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bda52883657b. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +82, Tests +464. Total +546 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (12 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review Updated exact head: Changes since the last review:
Re-ran locally because Crabbox/Testbox is unavailable in this environment: Loopback proof transcript is in the PR body. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Updated exact head: Changes since the last completed review:
Validation rerun locally because Crabbox/Testbox is unavailable here: Focused test result: 1 file passed, 11 tests passed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Updated exact head: This is the final head after:
PR body is updated with the current head, validation commands, and the loopback proof transcript. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Alix-007 <[email protected]>
|
Merged via squash.
|
…#104288) * fix(msteams): add timeouts to SharePoint file send requests * fix(msteams): clean up SharePoint timeout proof * fix(msteams): use transfer deadline for SharePoint uploads * test(msteams): normalize SharePoint abort rejection reasons * fix(msteams): size SharePoint upload deadline by file length * chore(deadcode): allowlist test-only timeout constant exports * fix(msteams): harden SharePoint sharing deadlines Co-authored-by: Alix-007 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
…#104288) * fix(msteams): add timeouts to SharePoint file send requests * fix(msteams): clean up SharePoint timeout proof * fix(msteams): use transfer deadline for SharePoint uploads * test(msteams): normalize SharePoint abort rejection reasons * fix(msteams): size SharePoint upload deadline by file length * chore(deadcode): allowlist test-only timeout constant exports * fix(msteams): harden SharePoint sharing deadlines Co-authored-by: Alix-007 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes MS Teams group/channel file sends that could hang indefinitely during Graph token acquisition, SharePoint upload, sharing-link creation, chat-member lookup, drive-item metadata lookup, or response-body reads.
It also removes an unsafe sharing fallback: a generic Graph 403 is not proof that chat-member permission is absent. Microsoft documents 403 for insufficient permission, missing license, and conditional-access claims; per-chat RSC grants are not ordinary token roles.
Why This Change Was Made
ChatMember.Read.All, per-chatChatMember.Read.ChatRSC, and the broaderChat.Read.Allalternative.User Impact
MS Teams file sends no longer wait forever when Graph or SharePoint stalls. Slow valid large uploads retain enough transfer time. Group-chat file access can no longer widen to the whole organization after an ambiguous member-lookup denial.
Release note: MS Teams SharePoint file sends now time out instead of hanging, and group-chat member lookup failures fail closed instead of widening files to the organization.
Evidence
Exact head:
cc90663e7218904270665f00106c0f313d356f8a.Focused validation:
Coverage includes:
Controlled loopback transport proof from the contributor exercised the production helpers over real Node HTTP transport:
Fresh pre-push autoreview accepted two findings (RSC cannot be inferred from JWT roles;
ChatMember.Read.Allis the least-privileged application permission), both fixed. Final autoreview reported no accepted/actionable findings.Delegated Testbox
check:changedreached the repository gates but hit only the stale-head max-lines baseline ratchet; the PR is mergeable and hosted exact-head CI is the authoritative post-push gate. True Microsoft tenant behavior remains blocked because no approved Teams/Graph credential was available; the proof above is controlled transport and focused regression coverage, not a live tenant claim.