WebDAV Locking Mechanisms in LibreOffice

LibreOffice supports standard WebDAV protocol locking mechanisms to prevent data loss and resolve concurrency conflicts when multiple users access remote files. By utilizing native WebDAV lock management, LibreOffice detects whether a remote document is currently in use, acquires server-side locks during edit sessions, and provides fallback alerts when a file cannot be safely modified.

RFC-Compliant WebDAV Exclusive Write Locks

LibreOffice utilizes standard HTTP LOCK requests conforming to RFC 4918 (and the legacy RFC 2518) to secure exclusive write access to remote documents:

Lock Discovery and Conflict Detection

Before editing a document, LibreOffice queries the server to determine the lock state of the target file:

Lock Refresh and Timeout Handling

To maintain an active editing session without losing lock state, LibreOffice manages lock life cycles dynamically:

Fallback and Client-Side Lock Files

When interacting with WebDAV servers that do not fully implement RFC 4918 locking, or when remote connections are managed via operating system mounts (such as GVfs or KIO) rather than LibreOffice’s internal WebDAV client: