Repository navigation
fix: [OCISDEV-1809] open documents in Collabora for editing - #13697
Merged
Merged
Conversation
Newer Collabora versions advertise both "view" and "edit" actions per extension in their discovery, and the "view" url can force read-only mode via permission=readonly. The collaboration service always preferred the "view" url for Collabora, so documents opened read-only even when read/write mode was requested. Prefer the "edit" url for read/write mode for every WOPI app and keep the existing Collabora fallbacks for single-action discoveries. Signed-off-by: Lukas Hirt <info@hirt.cz> (cherry picked from commit 9c58835) Signed-off-by: Lukas Hirt <info@hirt.cz>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
mklos-kw
approved these changes
Dec 4, 2026
2403905
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #13695 to
stable-8.2.Description
The collaboration service always used the
viewURL from Collabora's discovery and ignored the requested view mode. That worked while Collabora listed only one action per file type. The service now prefers theeditURL for read/write mode with every WOPI app, as it already did for Microsoft and OnlyOffice. For Collabora it still falls back fromviewtoedittoview_commentwhen a file type has only one action.UserCanWrite/ReadOnlyin CheckFileInfo were already set from the view mode, so this changes only which URL Collabora opens, not what the user is allowed to do.Related Issue
Motivation and Context
Newer Collabora builds list both
viewandeditfor the same file type, and theviewURL forces read-only mode (cool.html?permission=readonly&). Because oCIS always pickedview, documents opened read-only even for users who can edit them. This is visible on demo.owncloud.com, which uses Collabora's public demo server (Collabora Online 26.04.6.3 snapshot).Discovery per version (odt/docx/xlsx):
viewURLeditonlyview+editcool.html?view+editcool.html?permission=readonly&How Has This Been Tested?
view_commentfallback, and Microsoft/OnlyOffice read-only. The existing Collabora entries now expect theeditURL for read/write.getAppUrlagainst the discoveries of the Collabora versions in the table (localcollabora/codecontainers and the public demo server):Types of changes
Checklist: