docs-editing: Collabora's settings-file fetch is gated by the front door — once an operator opens the editor's admin page, EVERY document open fails (the #1620 run-7 red; needs a ruling under ADR 0258) #1642
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Matou/idss#1642
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened (#1620 run 7,
20260919T221805Z, 38/39, commit9acd1a4e)operator-docs-editingwent GREEN — the frame shows a genuinely loaded document in Collabora, so ADR 0258's source-bound WOPI callback works live (@files_callbackrendered withremote_ip 127.0.0.1 ::1 <gateway public IP>).member-docs-editingwent RED: "Document loading failed". coolwsd's journal on the kept box:Cause
Collabora makes a SECOND server-to-server call to Files besides WOPI: it fetches each shared settings file from
/apps/richdocuments/settings/{type}/{token}/{category}/{name}(richdocuments 9.2.2,SettingsController::getSettingsFile—@PublicPage, authorised by a per-open WOPI token of typeTOKEN_TYPE_SETTING_AUTH, no community session). That path is not under/apps/richdocuments/wopi*, so the front door answers 302 to sign-in (replayed from the box:302 -> /authz/signin). The config never installs, no document process is ever spawned for it, and the open fails.It only bites once a settings file exists. The operator's admin check opened
/settings/admin/richdocuments, whose Collabora settings frame uploaded the defaultdocumentView.xcu. The operator's document opened BEFORE that; the member's open came after. On a real community, the first time an operator visits that admin page, every document open for everyone breaks.The decision (needs Ben — ADR 0258 says adding any source-bound path needs a ruling)
/apps/richdocuments/settings/*(+/index.php/…) to the source-bound callback list — same binding as ADR 0258: bypasses the gate only from the gateway's own addresses, only while docs-editing is placed. Note the glob also covers richdocuments' othersettings/…routes (fonts, check, watermark) — from the gateway's own addresses only; Nextcloud still applies its own admin/session checks on those./apps/richdocuments/settings/systemconfig/*and/apps/richdocuments/settings/userconfig/*— just the token-bearing file fetch, nothing else.Recommendation: 2.
No change lands before the ruling. #1620 is blocked on this.
Ben ruled option 2 (in session, 2026-09-20): only the two token-bearing settings-file shapes join the source-bound list. Landed as
b02474e5— ADR 0258 amendment, GOTCHAS #276, list test-pinned. Seam-proven; #1620 run 8 is the live proof.