https://bugs.documentfoundation.org/show_bug.cgi?id=151865

            Bug ID: 151865
           Summary: Samba share via cifs utils and Libreoffice: Files get
                    deleted when two Linux users work with the file (the
                    first user in editing mode and the second user in
                    read-only mode)
           Product: LibreOffice
           Version: 7.4.1.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If Linux User1 opens a LO file on a samba share mounted via cifs (fstab) and
Linux User2 opens the same file in red-only mode, then upon saving the file it
gets deleted from the samba share.

Our team can reproduce this bug 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 Debian 11 PCs and several Windows 10 PCs.

Debian 11 PCs have access to the share via cifs utils (fstab)
: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 Debian 11 LB
version and the latest one.

This bug is only experienced when Debian+Debian PCs are interacting with the
share. If it's Debian+Windows the bug doesn't happen

Steps to Reproduce:
1.Create a samba share

2. Add the share to users' fstab file via cifs:
uid=1000,gid=1000,dir_mode=0777,file_mode=0777,iocharset=utf8,nobrl,_netdev 0 0

3.Debian User1 opens a document and starts working on it

4.Debian User2 opens the same document in "read only" or "copy" mode

5. Debian User1 tries to save the file


Actual Results:
Debian 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 Debian User2
closes the read only version of the file, then Debian User1 can actually save
the file and restores it on the samba share. if Debian User1 closes the opened
file it permanently disappears from the share

Expected Results:
Debian User1 saves the file and it gets saved successfully. The file doesn't
get deleted.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
LO shouldn't automatically delete files under these curcumstances.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to