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

After restoring a version of a file, webdav doesn't give the full correct content. #278

Open
dpakach opened this issue Nov 29, 2019 · 3 comments
Labels

Comments

@dpakach
Copy link
Contributor

dpakach commented Nov 29, 2019

Steps to reproduce

  1. setup files_primary_s3 with ceph
  2. create a file called file0.txt with the content Awesome new file.
  3. update the file so the content is now: File.
  4. restore the first version of the file
  5. get the content of the file using webdav
curl -u tu1:tu1 -X GET 'http://core/remote.php/dav/files/tu1/file0.txt'

Exected result

You get the original content of the file Awesome new file

Actual Result

You only get the part of the file Aweso

possible related to #156, The file metadata seems to be not updating while changing the file version.
The request only returns the file as it sends request with Contnent-Length set to the old length of the file.

@phil-davis phil-davis changed the title After restoring a version of a file, webdav doesn't give the correct content. After restoring a version of a file, webdav doesn't give the full correct content. Nov 29, 2019
@phil-davis
Copy link
Contributor

i.e. you get the start of the content of the restored file, but only up to the (shorter) length of the previously-current version.

@phil-davis
Copy link
Contributor

Test scenario to cover this is added in core owncloud/core#36490
When fixing this bug, remove the @skipOnStorage:ceph @files_primary_s3-issue-278 tags, and make the scenario pass with S3 storage.

@individual-it
Copy link
Member

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