rclone icon indicating copy to clipboard operation
rclone copied to clipboard

Web Dav mount files appear as 1999-09-04 date

Open imadevel opened this issue 1 year ago • 1 comments

Hello, I have a strange Problem with a WebDAV mount, the folder is mounted and everthing seeams to work, but when I open a file with LibreOffice it complains about the fact that the file was changed on the drive, since I am the only one accessing the file I was confused So I tested it after saving the file it appears as

Access: (0644/-rw-r--r--)  Uid: ( 1002/    user)   Gid: ( 1002/    user)
Access: 1999-09-04 02:00:00.000000000 +0200
Modify: 1999-09-04 02:00:00.000000000 +0200
Change: 1999-09-04 02:00:00.000000000 +0200
 Birth: -

The stats change after a few seconds. But it seems to be enough to confuse LibreOffice Also I tested on different Programms, when saved with a texteditor like nano the file also has that modification date.

Also I checked different webdav Servers, it was needed on an Alfresco Server but the same behavior is seen when mounting a Nextcloud share. So I assume the Probleme is not on the Server Side

System mounting the share is 'Debian GNU/Linux 12 (bookworm)' with rclone Version 'rclone 1.60.1+dfsg-2+b5' installed.

This is a reproducible problem. Also sometimes files have 0 Bytes but at the moment I am not sure if there problems are related at all and it is completely unreproducible

Help would be greatly appreciated, tried to change the cache the 'attr-timeout' but with no luck

imadevel avatar Apr 24 '24 11:04 imadevel

This looks like a call to time.Truncate with fs.ModTimeNotSupported.

iikira avatar Apr 24 '24 18:04 iikira