Skip to content

fix(zip): Fix warning when downloading Zip file#59372

Merged
skjnldsv merged 1 commit intomasterfrom
carl/silent-warning-zip
Apr 1, 2026
Merged

fix(zip): Fix warning when downloading Zip file#59372
skjnldsv merged 1 commit intomasterfrom
carl/silent-warning-zip

Conversation

@CarlSchwan
Copy link
Copy Markdown
Member

Summary

The HEAD request, create a GET subrequest which is not compatible with the ZIP plugin since the ZIP plugin is directly streaming the content to php://output, so we were sending the content in a HEAD request and creating the ZIP twice and this was creating various warning in logs too.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The HEAD request, create a GET subrequest which is not compatible with
the ZIP plugin since the ZIP plugin is directly streaming the content to
php://output, so we were sending the content in a HEAD request and
creating the ZIP twice and this was creating various warning in logs
too.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan added this to the Nextcloud 34 milestone Apr 1, 2026
@CarlSchwan CarlSchwan self-assigned this Apr 1, 2026
@CarlSchwan CarlSchwan requested a review from a team as a code owner April 1, 2026 10:22
@CarlSchwan CarlSchwan added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 performance 🚀 labels Apr 1, 2026
@CarlSchwan CarlSchwan requested review from icewind1991, leftybournes, provokateurin and salmart-dev and removed request for a team April 1, 2026 10:22
@skjnldsv skjnldsv merged commit bb1ad1c into master Apr 1, 2026
182 of 184 checks passed
@skjnldsv skjnldsv deleted the carl/silent-warning-zip branch April 1, 2026 12:19
@CarlSchwan
Copy link
Copy Markdown
Member Author

/backport to stable33

@CarlSchwan
Copy link
Copy Markdown
Member Author

/backport to stable32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews performance 🚀 technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Warning 'headers already sent by ZipStreamer' when download folder in zip

3 participants