Skip to content

Notify Collabora around changed document metadata #3421

Open
@juliusknorr

Description

Problem

Users might still interact with a file in different ways where this could lead to problems while it is currently being edited with Collabora.

Lock ownership changes

  • File owners can unlock a locked file manually / A user switches from Collabora to edit locally
    • File should be saved
    • Existing editing sessions should be switched to read only
    • The users should be notified about that and why this happend
  • If a file is saved outside
    • read only should update

Access permissions change

  • Access is revoked (either full or just write access)
    • Collabora should stop editing, notify the user and offer to download the file if changes were made, there is no way we can save this back to Nextcloud then
  • File was deleted
    • Not sure what the best approach here would be, notify the user at least and offer download or saving to another location

Implementation ideas

Neither of this is part of the WOPI standard.

  • Post messages are not suitable (except for the edit locally option) as there is no open Collabora user session in the other cases
  • Regular polling of checkFileInfo, would need some extra handling to detect/store the reason for later fetching of Collabora
  • Endpoint to notify Collabora about a change
    • Might have larger overhead if we need to find matching file ids to know which Collabora documents we need to notify

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions