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

Stream zip or tar #19318

Merged
merged 9 commits into from
Sep 28, 2015
Merged

Stream zip or tar #19318

merged 9 commits into from
Sep 28, 2015

Conversation

VicDeo
Copy link
Member

@VicDeo VicDeo commented Sep 23, 2015

download directory content as tar for macs.
Depends on owncloud-archive/3rdparty#197
owncloud-archive/3rdparty#198
Ref #17930

P.S. Elementary tar structures spec for okteta hex editor

@VicDeo VicDeo force-pushed the tarstreamer branch 2 times, most recently from c4f75ec to 5edd872 Compare September 23, 2015 21:06
@DeepDiver1975 DeepDiver1975 added this to the 8.2-current milestone Sep 23, 2015
use \ZipStreamer\ZipStreamer;
use DeepDiver1975\TarStreamer\TarStreamer;

class OC_Streamer {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\OC\Streamer

@DeepDiver1975
Copy link
Member

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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@DeepDiver1975
Copy link
Member

THX @VicDeo

@LukasReschke LukasReschke self-assigned this Sep 24, 2015
@LukasReschke
Copy link
Member

Bugs:

  • Create a folder named test">, download it. Will be named test--.tar-;

Functionality:

  • Downloading an empty folder and extracting work on OS X
  • Downloading an folder with some files in it and extracting work on OS X
  • Downloading an folder with some files and subfolders in it and extracting work on OS X
  • Downloading an folder with only subfolders in it and extracting work on OS X
  • Downloading multiple folders works on OS X

@DeepDiver1975
Copy link
Member

  • tar file with a size of 4gb+

@DeepDiver1975
Copy link
Member

Create a folder named test">, download it. Will be named test--.tar-;

same for zip?

@LukasReschke
Copy link
Member

same for zip?

Nope. ZIP on master produces test2--.zip

@LukasReschke
Copy link
Member

tar file with a size of 4gb+

TAR files totalling more than 5GB seem to work fine here on OS X.

@LukasReschke
Copy link
Member

same for zip?

Bug in the library 🙊 https://github.com/owncloud/3rdparty/pull/197/files#r40337737

@VicDeo VicDeo force-pushed the tarstreamer branch 2 times, most recently from d3de42c to 7e56f60 Compare September 24, 2015 18:35
@VicDeo
Copy link
Member Author

VicDeo commented Sep 24, 2015

Create a folder named test">, download it. Will be named test--.tar-;

@LukasReschke
now it is test--.tar. Is it ok? :)

@DeepDiver1975
Copy link
Member

TAR files totalling more than 5GB seem to work fine here on OS X.

nice 🚀

@LukasReschke LukasReschke removed their assignment Sep 25, 2015
@DeepDiver1975 DeepDiver1975 changed the title [WIP] Stream zip or tar Stream zip or tar Sep 25, 2015
@DeepDiver1975 DeepDiver1975 self-assigned this Sep 29, 2015
@DeepDiver1975 DeepDiver1975 restored the tarstreamer branch September 30, 2015 08:15
@DeepDiver1975 DeepDiver1975 deleted the tarstreamer branch September 30, 2015 08:20
@ghost
Copy link

ghost commented Sep 30, 2015

@DeepDiver1975 thanks!

@rperezb
Copy link

rperezb commented Oct 8, 2015

@SergioBertolinSG please

@rperezb
Copy link

rperezb commented Oct 8, 2015

Suggested test plan:

8.2

Expected result in every case: archives can be opened without error using the os archive tools

@SergioBertolinSG Editing:

Test 1: on the public share page Result: MAC Result: Windows Result: Linux Result: Mobile
File is downloaded
Folder is downloaded
Select some files within a folder and download them
Test 2: being logged in Result: MAC Result: Windows Result: Linux Result: Mobile
File is downloaded
Folder is downloaded
Select some files within a folder and download them

@DeepDiver1975
Copy link
Member

And also add test cases with files and folder with a name longer then 100 chars - see owncloud/TarStreamer#4 (comment)

@SergioBertolinSG
Copy link
Contributor

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).

@DeepDiver1975
Copy link
Member

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

@SergioBertolinSG
Copy link
Contributor

Ok, I was using 8.2RC1.

@SergioBertolinSG
Copy link
Contributor

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.
When selecting several files of this shared folder, the downloaded file is called like the shared folder.
It should be the opposite isn't? the selected files downloaded in download.tar and the whole folder with {folder_shared_name}.tar

@PVince81
Copy link
Contributor

PVince81 commented Oct 8, 2015

@SergioBertolinSG maybe, can you raise a ticket for that ?

@DeepDiver1975
Copy link
Member

@nickvergessen another testcase for smashbox?

@nickvergessen
Copy link
Contributor

@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.

@SergioBertolinSG
Copy link
Contributor

@PVince81 raised #19646

@DeepDiver1975
Copy link
Member

I missinterpreted the original report - the behavior is like that since forever.
@SergioBertolinSG I'm sorry

@DeepDiver1975
Copy link
Member

And also add test cases with files and folder with a name longer then 100 chars - see owncloud/TarStreamer#4 (comment)

@SergioBertolinSG can you test this on macos please? THX

@SergioBertolinSG
Copy link
Contributor

@DeepDiver1975 Yes I did, works fine. Same in windows and linux.

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.

10 participants