-
Notifications
You must be signed in to change notification settings - Fork 113
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
Add support for resource id to the archiver #2100
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
f321bbb
to
3d2424c
Compare
9d3ac28
to
b48eff4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the latest fixes it looks good to go for me.
…and changed the interface of the archvier service, to accept a list of `path` and `id`
b48eff4
to
d8733ee
Compare
d8733ee
to
9e47ed8
Compare
On a mac I get the following error when trying to extract the downloaded tarball with
It extracts it, the folder structure is correct, but the files are corrupted. Does this work for you? |
Can confirm that on Linux/Ubuntu archives that contain |
@kulmann @pascalwengerter I tried on both Mac and Arch and I didn't manage to reproduce the errors you had. For me it works on both systems, could you please provide me the steps to reproduce it? Thanks |
Maybe it's an issue with the current state of owncloud/web#5832 |
Can you please try doing an HTTP GET request directly to the archiver service? |
a3eba06
to
6e452ff
Compare
6e452ff
to
0f1ce99
Compare
…ng of local files
…ng files from reva
0f1ce99
to
2785918
Compare
2785918
to
ad458e4
Compare
634e15f
to
014e172
Compare
@kulmann @pascalwengerter I added some unit tests into the archiver and all are passing, are you having the same issues? |
d0af28e
to
53da0f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The id based version now works like a charm 🥳
Resolved in the web PR. Sorry for the noise 😅 |
Glad it works! @labkode @glpatcern can we merge it now? |
Great, thanks all! Merging right away |
@gmgigi96 when using both id and path in the same request e.g. I get whatever is requested by path in the folder called
|
* Add support for resource id when requesting a download of an archive and changed the interface of the archvier service, to accept a list of `path` and `id` * Add tests * Add changelog * Add Walker interface * Add walker mock * The mock downloader implements the Downlaoder interface for downloading of local files * The Reva downloader implements the Downloader interface for downloading files from reva * Refactored archiver to be testable * HTTP handler of the archiver * Some useful functions for tests * Add unit tests * Fix typo * Fix linter * Fix linter2 * Reorganized files * Fix config parsing
Before the archiver only supported resources provided by a path.
Now also the resources ID are supported in order to specify the content of the archive to download. The parameters accepted by the archiver are two:
path
(containing the paths of the resources)id
(containing the resources IDs of the resources)Closes #2097