Skip to content

File remains locked when leaving Nextcloud Office using browser Back button #5962

Description

@brunoandradeSP

Steps to reproduce

  1. Create a new .docx document.
  2. Open it in Nextcloud Office.
  3. Edit the document.
  4. Save (autosave is enough).
  5. Leave the editor using the browser Back button instead of "Close file".
  6. Try to delete the document.

Expected behaviour

The editing session should be closed and the WOPI lock released.
The document should be deletable.

Actual behaviour

The document remains locked by Nextcloud Office.

The user receives a permission/lock error when trying to delete it.

If the document is closed using the "Close file" button instead of the browser Back button, the lock is released correctly and the document can be deleted.

Logs

WebDAV:

Sabre\DAV\Exception\Locked

richdocuments:

No error message (empty exception)

Environment

Nextcloud 34.0.2

richdocuments 11.1.0

richdocumentscode 26.4.104

Redis enabled for file locking

Ubuntu Server 20.04

Browser tested:
Microsoft Edge 151 (Chromium)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions