Skip to content

fix(mime): add the OOXML Visio types - #900

Merged
butonic merged 1 commit into
opencloud-eu:mainfrom
junkerderprovinz:fix/issue-3120
Oct 26, 2026
Merged

butonic merged 1 commit into
opencloud-eu:mainfrom
junkerderprovinz:fix/issue-3120

Conversation

@junkerderprovinz

Copy link
Copy Markdown

Fixes opencloud-eu/opencloud#3120

pkg/mime knows the old binary Visio formats (.vsd, .vss, .vst, .vsw) but not the OOXML ones, so a .vsdx is detected as application/octet-stream. An app registry entry for application/vnd.ms-visio.drawing.main+xml never matches, and the file can't be opened in an editor.

This adds vsdx, vsdm, vssx, vssm, vstx and vstm with the types listed in the issue, keeping the map in alphabetical order.

The package has no tests. I checked mime.Detect locally for all six extensions, upper case included, and go build and go vet pass.

Thanks to @puredomain for tracking this down and for the exact list. They're credited as co-author on the commit.

Assisted-by: Claude Code:claude-opus-5-5 (used to write the change and this description)

Files ending in .vsdx, .vsdm, .vssx, .vssm, .vstx and .vstm were
detected as application/octet-stream, so the app registry could not
route them to an editor.

Co-authored-by: puredomain <[email protected]>
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Oct 26, 2026
@butonic
butonic merged commit d6620f7 into opencloud-eu:main Oct 26, 2026
20 checks passed
@github-project-automation github-project-automation Bot moved this from Qualification to Done in OpenCloud Team Board Oct 26, 2026
@openclouders openclouders mentioned this pull request Oct 26, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

.vsdx and other OOXML Visio types resolve to application/octet-stream, breaking WOPI app-open — no config-driven way to add the mapping

2 participants