Bug 151865 - Smb 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)
Summary: Smb share via cifs utils and Libreoffice: Files get deleted when two Linux us...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.4.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-02 12:49 UTC by mrchinaski
Modified: 2022-11-17 03:47 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mrchinaski 2022-11-02 12:49:41 UTC
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.