Skip to content

fix(wopi): populate discovery formats and log read failures#26

Open
juliusknorr wants to merge 1 commit into
mainfrom
fix/wopi-discovery-formats
Open

fix(wopi): populate discovery formats and log read failures#26
juliusknorr wants to merge 1 commit into
mainfrom
fix/wopi-discovery-formats

Conversation

@juliusknorr
Copy link
Copy Markdown
Member

@juliusknorr juliusknorr commented May 29, 2026

WOPI /hosting/discovery listed no mimetypes because getAllFormats swallowed read errors of the formats file.

  • Warn when documentFormatsFile is missing/unconfigured/not a JSON array
  • Don't cache an empty result on failure (retry on next request)
  • Key the cache by filePath (was a process-global shared across tenants)

Hardening on top of Euro-Office/DocumentServer#118

getAllFormats swallowed read errors of the formats file, so WOPI
/hosting/discovery silently listed no mimetypes. Now it warns when the
file is missing/unconfigured/not an array, no longer caches an empty
result on failure (retries next request), and keys the cache by filePath
instead of a single process-global shared across tenants.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
AI-assistant: Claude Code 2.1.156 (Claude Opus 4.8 claude-opus-4-8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant