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

Patch ZipStreamer to fix directory downloads #74

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

nickvergessen
Copy link
Member

Patches ZIpStreamer with McNetic/PHPZipStreamer#39 to fix nextcloud/server#2352

@MorrisJobke
Copy link
Member

How to test this? The zip files work before and after this patch on my Windows 10 machine. With macOS they don't work (neither before nor after this patch).

@nickvergessen
Copy link
Member Author

Ask people of nextcloud/server#2352 for the setup configurations.
Or maybe @mathiasconradt can help with details

@@ -525,7 +525,7 @@ private function buildCentralDirectoryHeader($filePath, $timestamp, $gpFlags,
private function buildEndOfCentralDirectoryRecord($cdRecLength) {
if ($this->zip64) {
$diskNumber = -1;
$cdRecCount = -1;
$cdRecCount = min(sizeof($this->cdRec), 0xffff);;
Copy link
Member Author

Choose a reason for hiding this comment

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

same here

Copy link
Member

Choose a reason for hiding this comment

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

Could you fix the extra space and the extra ; and then this is good for me.

Copy link
Member Author

Choose a reason for hiding this comment

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

done in all 3 PRs

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

It at least fixes some problems. Lets do this and then baby steps for OSX...

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the bugfix/2352/zip64-central-directory-length branch from 7db35ff to 4ec6dd6 Compare January 10, 2018 13:55
@MorrisJobke MorrisJobke merged commit 3cec97e into master Jan 10, 2018
@MorrisJobke MorrisJobke deleted the bugfix/2352/zip64-central-directory-length branch January 10, 2018 15:23
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

Successfully merging this pull request may close these issues.

CRC error with zip files downloaded from web UI
3 participants