Skip to content
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

restoring a version of a file does not recalculate the checksum #156

Open
individual-it opened this issue Nov 23, 2018 · 3 comments
Open
Labels
Milestone

Comments

@individual-it
Copy link
Member

  1. setup files_primary_s3 with ceph
  2. create a file called file0.txt with the content version 0
  3. check the current checksum of the file via PROPFIND:
    curl -u admin:admin -X PROPFIND  http://localhost/owncloud-core/remote.php/dav/files/admin/file0.txt -d     '<?xml version="1.0"?> <d:propfind  xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns"><d:prop><oc:checksums /></d:prop></d:propfind>' | xmllint --format -
    
    result: SHA1:3d05de25721cdcadb8ff34a189e86e7a9af54c9c MD5:ed21253e3b26384985bc2f9af99c1c99 ADLER32:12aa0357
  4. update the file so the content is now: version 0, version 1
  5. check the current checksum of the file via PROPFIND
    result: SHA1:abab62244dfd0a8bf50a034781287cd725b9de4e MD5:71df209f63b657fb49a311331268abc4 ADLER32:4d2d06fa
  6. restore the first version of the file, and check the checksum via PROPFIND
    result: SHA1:abab62244dfd0a8bf50a034781287cd725b9de4e MD5:71df209f63b657fb49a311331268abc4 ADLER32:4d2d06fa
    the checksum was not updated

possible related to #128

@ownclouders
Copy link
Contributor

GitMate.io thinks the contributor most likely able to help you is @ownclouders.

Possibly related issues are #53 (Restoring a previous version of a shared file fails), #67 (Thumbnail preview of last version of a file does not work with scality), #155 (occ versions:cleanup does not work with S3), #128 (files are uploaded to ceph even when wrong checksum given), and #66 (Initializing a new user leads to an empty version created of the skeleton file).

@individual-it
Copy link
Member Author

@individual-it
Copy link
Member Author

same issue with scality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants