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

File version api for spaces is not implemented #3079

Closed
amrita-shrestha opened this issue Feb 1, 2022 · 3 comments
Closed

File version api for spaces is not implemented #3079

amrita-shrestha opened this issue Feb 1, 2022 · 3 comments
Labels

Comments

@amrita-shrestha
Copy link
Contributor

amrita-shrestha commented Feb 1, 2022

Describe

Using the new WebDAV we can list file versions.

Steps to reproduce

Steps to reproduce the behaviour:

  1. create user uu1
  2. upload a.txt with content 'upload version1'
  3. upload a.txt with content 'upload version2'
  4. using spaces WebDAV API list file version
curl -vks -XPROPFIND -u uu1:password https://localhost:9200/remote.php/dav/meta/{fileid}/v | xmllint --format -

For spaces I tired below endpoint.It return HTTP status code 404

curl -vks -XPROPFIND -u uu1:password https://localhost:9200/remote.php/dav/spaces/{spaceid}meta/{fileid}/v | xmllint --format -

Question

  • Is there any endpoint in spaces for the file version?
  • If the file version isn't implemented on spaces, will this feature will be implemented?
@stale
Copy link

stale bot commented Apr 3, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@phil-davis
Copy link
Contributor

I added the "bug" label to stop the bot from closing this.

I guess that spaces will have versions ability? If so, how does the versions endpoint work for a space?

@ScharfViktor
Copy link
Contributor

re-tested on v1.20.0

versions endpoint works for space. I suggest to close issue

curl -vks -XPROPFIND -u uu1:password https://localhost:9200/remote.php/dav/meta/074c7aaf-5e6a-4a97-8d95-b97afc425379!1921c44e-f64d-453c-9e9b-dc0c569eed34/v | xmllint --format -
Screenshot 2022-04-14 at 13 20 16

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