Bug 137230 - Save a file to network storage trashes the content
Summary: Save a file to network storage trashes the content
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 137394 (view as bug list)
Depends on:
Blocks: Network
  Show dependency treegraph
 
Reported: 2020-10-03 17:50 UTC by Uwe Altmann
Modified: 2021-11-11 15:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Original file (23.67 KB, application/vnd.oasis.opendocument.text)
2020-10-03 17:50 UTC, Uwe Altmann
Details
Result (trashed) file (43.46 KB, application/vnd.oasis.opendocument.text)
2020-10-03 17:53 UTC, Uwe Altmann
Details
uncorrupted file before saving on NAS (7.73 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-11-23 06:56 UTC, Thomas
Details
corrupted file after saving on NAS (11.74 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-11-23 06:57 UTC, Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Altmann 2020-10-03 17:50:48 UTC
Created attachment 166056 [details]
Original file

Environment: Ubuntu 20.04 (recent); LO 6.4.6 (recently for this Ubuntu version), NAS share on AVM Fritz!Box with Fritz!OS 7.20 (a popular router in Germany) using samba V2/3.

I' able to open files on the NAS directly from LO and edit them. Saving back directly (File > Save) to the NAS trashes the files content. 

Instead, saving locally and then copying the file via Ubuntu works as expected.
Using an older Version of Fritz! OS (which uses samba V1) works as expected.
Using another text editor on Ubuntu works like expected.
Using another OS (MacOS with LO 7.1 or 6.4.5) works like expected.

Drive is mounted in fstab with 
//192.168.10.1/fritz.nas/ /home/osboxes/Fritz cifs _netdev,auto,noserverino,users,user=???,password=???,uid=1000,gid=1000 0 0
Option "noserverino" is needed, otherwise accessing any file returns an error.
Comment 1 Uwe Altmann 2020-10-03 17:53:22 UTC
Created attachment 166057 [details]
Result (trashed) file
Comment 2 Thomas 2020-11-23 06:09:28 UTC
I can confirm this error, same happens with me. The NAS works flawless when accessing it from a Windows computer and Android smartphone. All other software works as expected when using the NAS (editing / saving files). 

Environment: LO 7.0.2.2
NAS share with AVM Fritz!OS 7.21 using Samba v2 / v3
Comment 3 Thomas 2020-11-23 06:56:52 UTC
Created attachment 167492 [details]
uncorrupted file before saving on NAS

uncorrupted file before saving on NAS
Comment 4 Thomas 2020-11-23 06:57:48 UTC
Created attachment 167493 [details]
corrupted file after saving on NAS

corrupted file after saving on NAS
Comment 5 Thomas 2020-11-24 06:39:34 UTC
mounting the NAS with the option "cache=none" seems to solve the problem (workaround).
Comment 6 Thomas 2020-11-24 06:42:05 UTC
*** Bug 137394 has been marked as a duplicate of this bug. ***
Comment 7 Justin L 2020-12-24 12:48:13 UTC Comment hidden (obsolete)