-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Stream zip or tar #19318
Stream zip or tar #19318
Conversation
c4f75ec
to
5edd872
Compare
use \ZipStreamer\ZipStreamer; | ||
use DeepDiver1975\TarStreamer\TarStreamer; | ||
|
||
class OC_Streamer { |
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.
\OC\Streamer
b9fb750
to
c91f12c
Compare
zips and tars are generated and the tar can be opened on my linux machine. Test on Mac os is still pending @LukasReschke |
private $streamerInstance; | ||
|
||
/** @var string*/ | ||
private $extension; |
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.
unused
THX @VicDeo |
Bugs:
Functionality:
|
|
same for zip? |
Nope. ZIP on master produces |
TAR files totalling more than 5GB seem to work fine here on OS X. |
Bug in the library 🙊 https://github.com/owncloud/3rdparty/pull/197/files#r40337737 |
d3de42c
to
7e56f60
Compare
@LukasReschke |
nice 🚀 |
177315e
to
d5fa03d
Compare
@DeepDiver1975 thanks! |
@SergioBertolinSG please |
Suggested test plan: 8.2Expected result in every case: archives can be opened without error using the os archive tools @SergioBertolinSG Editing:
|
And also add test cases with files and folder with a name longer then 100 chars - see owncloud/TarStreamer#4 (comment) |
One file downloaded in a public share in OS X downloads a tar file instead of the file directly. Is this a problem? I find it annoying because it is just one file and you have to open it twice (open .tar + real open). |
This was fixed yesterday - please use current master for testing |
Ok, I was using 8.2RC1. |
When downloading a public shared folder the name of the file is always download.tar, instead of the folder name, inside the folder has the proper name. |
@SergioBertolinSG maybe, can you raise a ticket for that ? |
@nickvergessen another testcase for smashbox? |
Once the issue is fixed I can try to get ti working. Currently I specify the full-path in the curl request that grabs the zip. So that would need a check for the proposed file name instead. |
I missinterpreted the original report - the behavior is like that since forever. |
@SergioBertolinSG can you test this on macos please? THX |
@DeepDiver1975 Yes I did, works fine. Same in windows and linux. |
download directory content as tar for macs.
Depends on owncloud-archive/3rdparty#197owncloud-archive/3rdparty#198
Ref #17930
P.S. Elementary tar structures spec for okteta hex editor