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

Documentation for archiver #2096

Closed
kulmann opened this issue Sep 23, 2021 · 6 comments
Closed

Documentation for archiver #2096

kulmann opened this issue Sep 23, 2021 · 6 comments

Comments

@kulmann
Copy link
Member

kulmann commented Sep 23, 2021

For implementing the download as archive in ownCloud Web I'd like to see some basic documentation. Especially helpful: example requests for

  • downloading folder /test from the user home of einstein
  • downloading folder /test from the password protected public link GFZpdiHgFOonejL with password asdf
@kulmann
Copy link
Member Author

kulmann commented Sep 23, 2021

cc @ishank011 @gmgigi96

@kulmann
Copy link
Member Author

kulmann commented Sep 23, 2021

Since the API only accepts a dir and a list of file names, I'm especially unsure how to proceed with public links. I would have expected that the provided path is relative to the authenticated user's home directory. That doesn't seem to be the case.

@gmgigi96
Copy link
Member

The archiver does not support yet a password protected public link download.
Instead, to download a normal file/folder, the dir parameter should have as prefix /home, so according to your example dir=/home and file=test.

@kulmann
Copy link
Member Author

kulmann commented Sep 23, 2021

Just to get this straight, in your CERN-Box environment you'd have / as dir, so that we need to provide configuration for the path prefix, right?

@kulmann
Copy link
Member Author

kulmann commented Sep 23, 2021

In order to get this going for public links as well I'm discussing with @wkloucek right now that this should be implemented using resource ids, not paths.

@kulmann
Copy link
Member Author

kulmann commented Sep 23, 2021

Ideas for improvement tracked in #2097 - closing here.

@kulmann kulmann closed this as completed Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants