You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Weird mtime behaviour in a cascade federated share #15594
From the server B, send the shared file to server C (same as step 2)
Check the file is visible in server C with a determined mtime
After some time (5 minutes is enough) reload the page in server C to verify the mtime
Reload the page again
Expected behaviour
Mtime of the file in server C should be same than the original file (in server A)
Actual behaviour
Mtime in server C shows "a few seconds ago" even though the file hasn't been modified in server A
Server configuration
Operating system: ubuntu 14.04
Web server: apache 2.4.7
Database: mysql
PHP version: 5.5.4
ownCloud version: OC 8.0.3RC1 in all the servers
Updated from an older ownCloud or fresh install: fresh install in all the servers
Notes
Checked with a folder instead of a file, and it doesn't present this behaviour.
Mtime of the file in server B changes too, but then seems to recover after loading the file in server B
Preview might be the cause. Reloading several times the page in server C without allowing to finish getting the preview shows an acceptable timestamp, but if the preview get downloaded, the timestamp resets.
Can you retest with plain data files, ex: "data1.dat" to make sure no preview gets created.
If it still happens, then it is not related to previews.
Not sure why the mtime would change several times on the receiver side. It is supposed to reuse the cache info delivered by the origin, which includes mtime information.
CC @icewind1991
I've checked a similar setup with another image file, but instead sending the share to the user using password-protected shared links: The file in server C doesn't get the correct mtime after being modified in server A, looks like the file is stuck with the old version, but it downloads the right file. File in server B looks good except for the preview.
From my point of view, both methods should have the same behaviour, but it's very different.
Activity
PVince81 commentedon Apr 14, 2015
Can you retest with plain data files, ex: "data1.dat" to make sure no preview gets created.
If it still happens, then it is not related to previews.
Not sure why the mtime would change several times on the receiver side. It is supposed to reuse the cache info delivered by the origin, which includes mtime information.
CC @icewind1991
PVince81 commentedon Apr 14, 2015
I guess the mtime change might also have a related etag change, which would cause sync clients to redownload the files. To be confirmed.
jvillafanez commentedon Apr 14, 2015
I've checked a similar setup with another image file, but instead sending the share to the user using password-protected shared links: The file in server C doesn't get the correct mtime after being modified in server A, looks like the file is stuck with the old version, but it downloads the right file. File in server B looks good except for the preview.
From my point of view, both methods should have the same behaviour, but it's very different.
Checking with a plain file now.
jvillafanez commentedon Apr 14, 2015
With a "fake.dat" file, the behaviour seems the same as my last comment.
PVince81 commentedon Apr 14, 2015
Ok thanks for the info, so probably unrelated to previews.
PVince81 commentedon Oct 13, 2015
could be related to #19737
PVince81 commentedon Feb 15, 2016
Is this still happening in 9.0 ? (etag propagation has changed)
jvillafanez commentedon Feb 26, 2016
Checked against daily master (ownCloud 9.0.0 beta 2 (daily) Build:2016-02-26T04:41:33+00:00 cb41b1a) in the 3 servers: it's working.
There are quite a bunch of possiblities here with the server versions, so I'm not sure if we should prioritize any special configuration.
lock commentedon Aug 6, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.