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.
Created attachment 166057 [details] Result (trashed) file
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
Created attachment 167492 [details] uncorrupted file before saving on NAS uncorrupted file before saving on NAS
Created attachment 167493 [details] corrupted file after saving on NAS corrupted file after saving on NAS
mounting the NAS with the option "cache=none" seems to solve the problem (workaround).
*** Bug 137394 has been marked as a duplicate of this bug. ***