Skip to content

fix: backport secure extraction and XZ/Zstd to stable33 - #191

Merged
vitormattos merged 4 commits into
stable33from
backport/stable33-extract-hardening-20261122
Nov 22, 2026
Merged

vitormattos merged 4 commits into
stable33from
backport/stable33-extract-hardening-20261122

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Scope

Backport the extraction hardening already merged into main (latest #174–#186) and the upcoming focused fixes #189 and #190 into Nextcloud 33. Keep the app version 3.1.7 and NC33-only compatibility unchanged.

Commits (DCO/GPG verified; no squash)

  1. Secure extraction / resource budgets / rollback / RAR and external storage integration.
  2. Improve subprocess pipe draining (counterpart fix: avoid false decoder timeouts under continuous output #189).
  3. Add XZ/Zstandard formats and browser coverage (counterpart feat: support XZ and Zstandard extraction in Files #190).

Evidence

  • Clean patch application to stable33 HEAD 2a3df76184732c901fc3ef78bdc8d48fd491f889.
  • Combined local PHPUnit suite on stable33 snapshot: 84 tests, 385 assertions, PASS.
  • Full disposable NC33 Playwright suite: 10/10 PASS; XZ/Zstd action and 3 real decodes covered.
  • No release, tag, version bump or issue closure in this PR. Publication through Release Tool after checks and review.

Review priorities

Test archive traversal/symlinks, quota/timeout limits, partial rollback and destination permissions. Review on exact head; CI is not yet assumed green.

Bring staged secure extraction, rollback, zip/7z/RAR validation,
resource budgets, external storage support and regression tests from
main without changing the stable33 app version.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Avoid false timeouts on continuously verbose extraction subprocesses.
Protect both output streams with targeted regression cases.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Backport supervised XZ/Zstandard streams, Files MIME recognition and
integration tests while preserving the stable33 compatibility range.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Use the common NC33–35 baseline until the first v-prefixed
release tag is reachable by the automated release planner.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit ccd3e1f into stable33 Nov 22, 2026
27 checks passed
@vitormattos
vitormattos deleted the backport/stable33-extract-hardening-20261122 branch November 22, 2026 22:13
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.

1 participant