FileBrowser gains a WOPI host, so office documents can open in Collabora
Online (or any WOPI editor, OnlyOffice Docs included) next to the existing
OnlyOffice integration. Refs #641.
- integrations.wopi: url, internalUrl, secret, product, tokenExpirationHours,
viewOnly. Discovery is fetched from the editor and cached; extensions it
declares open in the editor, except formats FileBrowser already views
itself (images, plain text).
- GET /api/wopi/session returns the editor URL and a signed access token
bound to one file, one user and a mode. The token has its own audience and
a key derived from the auth key (or integrations.wopi.secret), so it never
doubles as a session token.
- /wopi/files/{id}[/contents]: CheckFileInfo, GetFile, PutFile and the lock
operations. Permissions are re-checked on every call, so revoking access
takes effect mid-session. PutFile receives the whole body before writing,
and answers Collabora's COOLStatusCode 1010 when the file changed in
storage since it was loaded, letting the user overwrite or reload.
- access_token is redacted from request logs.
- WopiEditor.vue form-posts the token into an iframe and handles UI_Close.
Public shares keep using OnlyOffice for now.