Our company has experienced a terrible bug when dealing with Libreoffice and samba shared documents and we can reproduce it every time.
What we've got:
Samba share on a windows PC (we tried with linux samba share and it's the same). Just one account to access it, so all PCs use the same login and password to access the share, but it doesn't matter coz the bug happens even when using different samba accounts.
Several Ubuntu 20.04 PCs and several Windows 10 PCs.
Ubuntu 20.04 PCs have access to the share via cifs utils (fstab) :
//srv-dc-02/uc /mnt/EDU2022 cifs credentials=/etc/win-credentials-1,uid=1000,gid=1000,dir_mode=0777,file_mode=0777,iocharset=utf8,nobrl,_netdev 0 0
The version of Libreoffice doesn't matter. We tried the default Ubuntu 20.04 LO version and the latest one.
Steps to reproduce this bug:
Ubuntu User1 opens a document and starts working on it.
Ubuntu User2 opens the same document in "read only" or "copy" mode.
Ubuntu User1 tries to save the file and immediately gets "the file is missing" error.
At this point the file is deleted from the samba share.
If Ubuntu User2 closes the read only version of the file, then Ubuntu User1 can actually save the file and restores it on the samba share. if Ubuntu User1 closes the opened file it permanently disappears from the share.
This bug is only experienced when Ubuntu+Ubuntu PCs are interacting with the share. If it's Ubuntu+Windows the bug doesn't happen.
Is there a way to fix this?