From e4163295a0b3d63210ba03aa7cc3af64ecff1d1f Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Mon, 23 Sep 2024 09:50:10 +0200 Subject: [PATCH] Fixed an issue when the collaboration service registers apps also for binary and unknown mime types. --- changelog/unreleased/fix-registers-app.md | 6 ++++++ pkg/mime/mime.go | 1 + 2 files changed, 7 insertions(+) create mode 100644 changelog/unreleased/fix-registers-app.md diff --git a/changelog/unreleased/fix-registers-app.md b/changelog/unreleased/fix-registers-app.md new file mode 100644 index 0000000000..eba578d0fd --- /dev/null +++ b/changelog/unreleased/fix-registers-app.md @@ -0,0 +1,6 @@ +Bugfix: Fixed the collaboration service registration + +Fixed an issue when the collaboration service registers apps also for binary and unknown mime types. + +https://github.com/cs3org/reva/pull/4859 +https://github.com/owncloud/ocis/issues/10086 diff --git a/pkg/mime/mime.go b/pkg/mime/mime.go index a6feda944f..74207c0137 100644 --- a/pkg/mime/mime.go +++ b/pkg/mime/mime.go @@ -1054,6 +1054,7 @@ var mimeTypes = map[string]string{ "wmz": "application/x-msmetafile", "woff": "font/woff", "woff2": "font/woff2", + "wopitest": "text/plain", // The dummy extension for the WOPI validator https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online/build-test-ship/validator "wpd": "application/vnd.wordperfect", "wpl": "application/vnd.ms-wpl", "wps": "application/vnd.ms-works",