-
Notifications
You must be signed in to change notification settings - Fork 186
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
downloading an old version of a file returns 501 #2261
Comments
still relevant in ocis v1.15.0. server log: |
I looked at the code and downloading an old version of a file is not implemented (https://github.com/cs3org/reva/blob/2ca63c840e42c0681e944c17259e2973ac99956d/internal/http/services/owncloud/ocdav/versions.go#L78) |
downloading an old version of a file fixed here: #3741 we can close issue |
created e2e test for downloading old version file |
Describe the bug
it is not possible to download an old version of a file as it is in oc10
Steps to reproduce
Steps to reproduce the behavior:
curl -X PUT -k -u admin:admin https://localhost:9200/remote.php/dav/files/admin/file.txt -d"original"
curl -X PUT -k -u admin:admin https://localhost:9200/remote.php/dav/files/admin/file.txt -d"overwritten"
curl -X PROPFIND -k -u admin:admin https://localhost:9200/remote.php/dav/files/admin/file.txt | xmllint --format -
curl -X PROPFIND -k -u admin:admin https://localhost:9200/remote.php/dav/meta/<fileid>/v | xmllint --format -
href
elementcurl -X GET -k -u admin:admin https://localhost:9200/<href>
Expected behavior
content of the old file version as described in the tests in owncloud/core#38921
Actual behavior
HTTP code 501
The text was updated successfully, but these errors were encountered: