-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check checksums or file contents before assuming a file was moved (instead of just mtime+inode) #2983
Comments
Can you please provide the log. The corresponding entry on the .owncloud.log file would be usefull. Here is my theory: The .cnf file was removed, and the .gpg file was created a bit later but recieved the same inode as the previously deleted file. The size of the two files happen to be the same, and also the mtime was set to the same as the old one. And therefore the client tought it was a move. |
I have this in logs: Nothing about .gpg file. That would be strange they had same size & same mtime... .gpg file is 6714 bytes. I don't known exact size of .cnf file but it's around 5000-6000 ... |
If this is what I think, it is a quite unlikely event but that still can happen. The only way I see to solve this problem would be to use checksum in the database |
I think this is a good solution, at least for files having same size. |
We work on the checksum thing, but that wont make it to 1.8.1 any more. Moving. |
@dragotin Am I understanding correctly that this ticket should be called "Check checksums before assuming a file was moved"? |
Note the whole move detection business is tricky |
@ckamm yes exactly. The problem is that same inode, mtime, and size might still not be a move and checking checksum in addition should solve the problem. |
Status: We now compute a checksum on download/upload and could use this info. |
Slightly related: #4034 |
This currently doesn't do much because we only compute content checksums for .eml files.
This currently doesn't do much because we only compute content checksums for .eml files.
The check is now implemented, but only works for files that have a content checksum (.eml files that were uploaded). See #4375 for details on enabling more checksumming. |
Hi hi: Test 1Steps Executed 1.- Connect desktop client to a server that has cksum capabilities enabled Results Desktop client check cksum to discover if this case is a move.
Test 2Steps Executed 1.- Connect desktop client to a server that has cksum capabilities enabled Results Desktop client check cksum to discover if this case is a move.
ServerOS: Ubuntu Client OS : OS X El capitán 10.11.4 Client OS: W81 |
Hi everyone,
Today I upgraded my Owncloud server to 8.0.2.
Then I upgraded my client to 1.8. I'm on Ubuntu.
I didn't open my client for a few days so Owncloud Client synced a few files with server.
And in "Activity" I can see this line:
Can someone explain me this ?! files are totally different (.cnf is a text file & .gpg is a private key).
AND .cnf file was deleted yesterday on client !!
Owncloud client didn't modify anything on client, but on server, .gpg got content of .cnf... absolutely absude :)
Is it an issue ?
Tell me if you need more information.
Thank you.
The text was updated successfully, but these errors were encountered: