Repository navigation
fix(nextcloud-talk): add timeouts to Talk send requests - #102025
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 9, 2026, 2:43 AM ET / 06:43 UTC. Summary PR surface: Source +4, Tests +185. Total +189 across 2 files. Reproducibility: yes. Current main has no timeoutMs on the two send/reaction fetchWithSsrFGuard calls, and the PR's loopback test demonstrates the hang class with a real local HTTP server that accepts the request and never responds. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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: Land the shared fetchWithSsrFGuard timeout wiring if maintainers accept 30 seconds as the plugin default; otherwise make the Nextcloud Talk outbound timeout policy explicit before merge. Do we have a high-confidence way to reproduce the issue? Yes. Current main has no timeoutMs on the two send/reaction fetchWithSsrFGuard calls, and the PR's loopback test demonstrates the hang class with a real local HTTP server that accepts the request and never responds. Is this the best way to solve the issue? Yes, with a maintainer-default caveat. Passing timeoutMs into the existing shared SSRF guard is the narrowest maintainable fix; adding direct AbortSignal wiring or a broad new config knob would be a worse layer unless maintainers reject the fixed 30s policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 20f355f2368c. Label changesLabel justifications:
Evidence reviewedPR surface: Source +4, Tests +185. Total +189 across 2 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 (1 earlier review cycle)
|
bc72e12 to
a5ce0e7
Compare
|
Land-ready maintainer review complete.
|
|
Merged via squash.
|
) * fix(nextcloud-talk): add timeouts to Talk send requests * test(nextcloud-talk): simplify send timeout proof --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where users sending Nextcloud Talk messages or reactions could have the send workflow wait indefinitely when the Talk server accepts the HTTP connection but never responds.
Why This Change Was Made
Nextcloud Talk's preflight path already passes a request timeout into
fetchWithSsrFGuard; this change applies the same bounded request behavior to message and reaction sends while preserving the existing SSRF policy, headers, and response handling.User Impact
Operators get a bounded failure instead of a stuck outbound send when a self-hosted or remote Talk endpoint hangs after accepting the connection.
Evidence
TMPDIR=/media/vdc/0668001470/tmp/openclaw-task-tmp node scripts/run-vitest.mjs extensions/nextcloud-talk/src/send.fetch-timeout.test.ts- passed;Test Files 1 passed (1),Tests 1 passed (1).cbx_737788970066, runrun_d95e3af3e15a, passed the focused test ata5ce0e7331aa8c6ce25464476fd98d343ded5d8d.TMPDIR=/media/vdc/0668001470/tmp/openclaw-task-tmp node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.extensions.json extensions/nextcloud-talk/src/send.ts extensions/nextcloud-talk/src/send.fetch-timeout.test.ts- passed; exit 0.git diff --check- passed; exit 0.timeoutMsguard parameters made the focused Vitest fail with2 failedandexpected 'pending' to be 'rejected'for both message and reaction paths; restoring the patch returned the test to green.Real behavior proof
Behavior addressed: Nextcloud Talk message and reaction POSTs now have a deadline when the remote server accepts the request but never sends a response.
Real environment tested: local Linux Node source checkout; real
node:httploopback server that accepts the connection and never responds, driving the real exportedsendMessageNextcloudTalkandsendReactionNextcloudTalkfunctions.Exact steps or command run after this patch:
TMPDIR=/media/vdc/0668001470/tmp/openclaw-task-tmp node scripts/run-vitest.mjs extensions/nextcloud-talk/src/send.fetch-timeout.test.tsEvidence after fix: the focused test asserts the real loopback server receives the outbound message and reaction POSTs; without the timeout wiring the calls remain pending past the race window, and with the patch they reject with an abort/timeout-class error.
Observed result after fix:
Test Files 1 passed (1)andTests 1 passed (1).What was not tested: a live Nextcloud Talk endpoint; the hang is reproduced with a real local HTTP server, not the real third-party service.