Skip to content

feat: support XZ and Zstandard extraction in Files - #190

Merged
vitormattos merged 1 commit into
mainfrom
feat/extract-xz-zstd-20261122
Nov 22, 2026
Merged

vitormattos merged 1 commit into
mainfrom
feat/extract-xz-zstd-20261122

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Related issues

Implementation

  • Recognize XZ/Zstandard MIME variants and fall back to conservative extension inference when Nextcloud reports application/octet-stream.
  • Supervise Zstandard decoding using the existing byte/entry/time limits and validate the original filename before publishing through Nextcloud's Files API.
  • Handle .tar.zst as a two-stage extraction; preserve original filenames when the local storage path is extensionless.
  • Add real archived fixtures, negative tests, Playwright integration cases, CI dependencies and user/admin documentation.

Verified locally

  • PHPUnit with the related supervisor fix: 82 tests, 380 assertions, PASS; after adding an additional extensionless temporary-file regression, the three complete stable snapshots each passed 84 tests, 385 assertions.
  • Psalm: PASS, without errors; ESLint, TypeScript and Vite production build: PASS.
  • Playwright: 10/10 NC33, 4/4 targeted NC34, 4/4 targeted NC35.
  • Zstandard with no zstd command using full 7z: 4/4 targeted tests.
  • Unicode filenames and activity events checked on disposable NC33.

Review and release notes

  • Review together with fix: avoid false decoder timeouts under continuous output #189 because the supervisor under sustained output was previously capable of false timeouts.
  • No production publication, credentials or version bumps in this PR.
  • Keep the DCO-signed commit (no squash); pending GitHub CI must be checked on its exact head SHA.

Add supervised Zstandard decoding through zstd or full 7z, MIME
recognition for XZ and Zstandard, and real Nextcloud regression
coverage for extraction and Files actions.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit 7722220 into main Nov 22, 2026
29 checks passed
@vitormattos
vitormattos deleted the feat/extract-xz-zstd-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