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

First steps of zip folder plugin #24178

Closed
wants to merge 2 commits into from
Closed

First steps of zip folder plugin #24178

wants to merge 2 commits into from

Conversation

DeepDiver1975
Copy link
Member

No description provided.

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @LukasReschke, @rullzer, @blizzz and @DeepDiver1975 to be potential reviewers

@DeepDiver1975 DeepDiver1975 added this to the 9.2-next milestone Apr 22, 2016
@PVince81
Copy link
Contributor

Ah! What a discovery! Nice thing

@DeepDiver1975
Copy link
Member Author

Bloody olf wip ...

@PVince81
Copy link
Contributor

Works now:
ZIP: curl -D - -X GET -H "Accept: application/zip" http://admin:admin@localhost/owncloud/remote.php/dav/files/admin/test -o test.zip
tar: curl -D - -X GET -H "Accept: application/x-tar" http://admin:admin@localhost/owncloud/remote.php/dav/files/admin/test -o test.tar.

If no "Accept" header is given, it will auto-detect based on user-agent or default to ZIP.

Yes, I changed the behavior because depending on the given extension could conflict with an existing file stored in ownCloud.

I had to hack Sabre a bit to prevent it to send its own response so that the streamer can use the good old dirty "echo directly the output".

@DeepDiver1975 @butonic @mrow4a check it out !

TODOs:

  • unit tests

@PVince81
Copy link
Contributor

Note: this doesn't fully replace the download endpoints. We're still missing something like "MGET" with a list of files to download from a given folder. Maybe we can do this separately if we agree on using a custom method.

@PVince81
Copy link
Contributor

PVince81 commented Oct 5, 2016

before I start with the pain of writing tests I'd like to know whether the approach described above is acceptable

@PVince81
Copy link
Contributor

PVince81 commented Apr 6, 2017

moving to backlog until there is more interest

@PVince81 PVince81 modified the milestones: backlog, 10.0 Apr 6, 2017
@PVince81
Copy link
Contributor

PVince81 commented Jul 4, 2017

old PR... do we still want this ? if yes, please review...

@mrow4a
Copy link
Contributor

mrow4a commented Jul 4, 2017

Maybe just integrate already existing plugin, which my friend implemented once https://github.com/deic-dk/files_compress and that should work @PVince81 @DeepDiver1975

@DeepDiver1975
Copy link
Member Author

Maybe just integrate already existing plugin, which my friend implemented once https://github.com/deic-dk/files_compress and that should work

I dislike the code and the concept

@DeepDiver1975 DeepDiver1975 self-assigned this Jul 4, 2017
@DeepDiver1975
Copy link
Member Author

old PR... do we still want this ? if yes, please review...

let me revive this ....

@DeepDiver1975
Copy link
Member Author

bildschirmfoto von 2017-07-05 15-20-27

@PVince81 test side effect bullshit as usual or real issue ❓

@PVince81
Copy link
Contributor

PVince81 commented Jul 5, 2017

might be the bullshit one... I didn't rebase this PR yet on a version that doesn't have this

@PVince81
Copy link
Contributor

PVince81 commented Jul 5, 2017

wait... you did rebase 😢

I don't see how it could be related

@PVince81
Copy link
Contributor

PVince81 commented Jul 5, 2017

it's indeed the bullshit zombie fail, PR to annihilate it: #28310

@lock
Copy link

lock bot commented Aug 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants