Skip to content

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

@dpakach

Description

@dpakach

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions