-
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
Store checksum in journal and verifiy upload for eml-files and others #3235
Comments
It would be good in a way to have it support multiple checksum algos at the same time. |
Moving to 2.1 to keep 2.0 reasonable size. |
00002839 |
@cdamken please elaborate. Pasting numbers and adding people is not enough. |
I think this is just for reference. I was mentioned, because it became a blue ticket and the number is the backlink to their system ;) |
@MorrisJobke yes, I know, but I would like to know the content of the blue-ticket as well. |
@dragotin The content of the ticket: *.EML files can't be deleted, even they are deleted in one client will reappear again and again, additionally generates a lot of network traffic. |
Storing the checksums in the DB will be part of #3735, this ticket can then be about using them to avoid unnecessary uploads. |
This has a couple of steps
|
I would guess you'd want md5 for that. The interesting bit is to see if it On Wed, Nov 11, 2015 at 4:40 PM, ckamm [email protected] wrote:
Best regards, |
I've tested PROPPATCH for updating file mtimes on the server, but it currently makes the file etag change (owncloud/core#20474). @dragotin and @ogoffart agree that in that case we are better off not telling the server about the new mtime, as it'd cause all other clients to re-download the unchanged file. |
Current pull request is #4180 |
* Compute the content checksum (in addition to the optional transmission checksum) during upload (.eml files only) * Add hook to compute and compare the checksum in csync_update * Add content checksum to database, remove transmission checksum
@ckamm what are the steps to reproduce this issue? |
|
I tested this issue and is working OK Closed |
It seems that this bug affects owncloud-client yet. EDIT: |
@mocolini Are you saying the content of those .eml files does not change but they are still reuploaded? |
@guruz exactly. |
I think it needs to be uploaded at least once after upgrading before the checksum are stored in the databse and are compared. Does it re-upload several time the same file? |
To be onest I don't know, 'cause I suddenly remove the ".eml" key . |
yes, previous version of the client did not store the checksum in the database. and we only store it after we complete an upload or a download. |
Ok, perfect, I misunderstood the client behavior. Cheers |
Sounds good :) |
Sure, I'll let you know |
Once #2542 is implement, the checksum should be stored in local sync journal. We could use it to verify if an upload is needed, or if just the files metadata (mtime specifically) has changed. This would solve trouble we have with eml files on windows, and this could be a nice first usage case.
Problems: If we detect that only the mtime has changed, we could propagate the new mtime to the server, using PROPPATCH (needs to be verified). But that will probably not change the ETag of the file and also not the ETags of the parent directories. If it would, a client seeing a changed ETag would not understand that only the mtime has changed, and not the content of the file.
Note to self: If the server could do file checksums as well, it should also maintain directory checksums. The checksums only would change if the file contents or the contents of files within a directory changes. The ETag would just be an indication that something changed, either content or metadata. The client would need to consider the checksum to find that out.
The text was updated successfully, but these errors were encountered: