Skip to content

Store checksum in journal and verifiy upload for eml-files and others #3235

Closed

Description

@dragotin

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.

Activity

  1. added this to the 1.8.2 - Bugfix 2 milestone on May 13, 2015
  2. guruz commented on May 15, 2015

    @guruz
    Contributor

    It would be good in a way to have it support multiple checksum algos at the same time.
    For example Adler32 is only good for error or change detection but not for deduplication (e.g. for #230)

  3. self-assigned this
    on May 19, 2015
  4. modified the milestones: , 2.0 - Multi-account on Jun 19, 2015
  5. MTRichards commented on Jun 19, 2015

    @MTRichards

    Moving to 2.1 to keep 2.0 reasonable size.

  6. cdamken commented on Jun 26, 2015

    @cdamken
    Contributor

    @MorrisJobke

    00002839

  7. dragotin commented on Jun 26, 2015

    @dragotin
    ContributorAuthor

    @cdamken please elaborate. Pasting numbers and adding people is not enough.

  8. MorrisJobke commented on Jun 26, 2015

    @MorrisJobke
    Contributor

    @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 ;)

  9. dragotin commented on Jun 26, 2015

    @dragotin
    ContributorAuthor

    @MorrisJobke yes, I know, but I would like to know the content of the blue-ticket as well.

  10. 28 remaining items

  11. added and removed
    ReadyToTest
    on Nov 27, 2015
  12. Dianafg76 commented on Nov 27, 2015

    @Dianafg76

    I tested this issue and is working OK
    Desktop v ownCloud-2.1.0.5655-nightly20151126-setup.exe
    Server v {"installed":true,"maintenance":false,"version":"8.2.1.4","versionstring":"8.2.1","edition":"Enterprise"}

    Closed

  13. mocolini commented on Jan 19, 2016

    @mocolini

    It seems that this bug affects owncloud-client yet.
    If I don't remove ".eml" in "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPropertySystemPropertyHandlers" the client keep uploading (unchanged) *.eml files.
    So, every time windows update itself (and so the ".eml" registry key is set back to default), hundred of .eml files (and MB) are re-uploaded to the server.

    EDIT:
    O.S.: windows 10 Home
    Client version: 2.1.0 (build 5683)

  14. guruz commented on Jan 19, 2016

    @guruz
    Contributor

    @mocolini Are you saying the content of those .eml files does not change but they are still reuploaded?

  15. mocolini commented on Jan 19, 2016

    @mocolini

    @guruz exactly.
    Today windows 10 upgrade itserlf and re-set the ".eml" key in the register (the one I've removed days ago), after that owncloud-client has begun to re-upload all the (unchanged) *.eml files.

  16. ogoffart commented on Jan 19, 2016

    @ogoffart
    Contributor

    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?

  17. mocolini commented on Jan 19, 2016

    @mocolini

    To be onest I don't know, 'cause I suddenly remove the ".eml" key .
    So the upload is performed just one time to "populate" the db? Am 'I right?
    And this happen for each windows PC, right?

  18. ogoffart commented on Jan 19, 2016

    @ogoffart
    Contributor

    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.

  19. mocolini commented on Jan 19, 2016

    @mocolini

    Ok, perfect, I misunderstood the client behavior.
    I'll check if the problem persist after complete upload/download, in that case I'll bother you again!
    :-)

    Cheers
    Michelino

  20. guruz commented on Jan 19, 2016

    @guruz
    Contributor

    Sounds good :)
    If you re-added the registry key, you can also try to remove it..

  21. mocolini commented on Jan 19, 2016

    @mocolini

    Sure, I'll let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Discussionblue-ticketp2-high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions