Skip to content

Fix tar type detection for hidden archives#61279

Open
fwerkor wants to merge 2 commits into
nextcloud:masterfrom
fwerkor:fix/tar-hidden-archives
Open

Fix tar type detection for hidden archives#61279
fwerkor wants to merge 2 commits into
nextcloud:masterfrom
fwerkor:fix/tar-hidden-archives

Conversation

@fwerkor

@fwerkor fwerkor commented Jun 14, 2026

Copy link
Copy Markdown
  • Resolves: #

Summary

Fix TAR type detection for hidden compressed archive names. The previous dot check treated a leading dot as no extension, so .tar.gz, .tgz, and .tar.bz2 fell back to plain tar handling.

TODO

  • Add regression coverage for hidden compressed tar archive names

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests are included
  • Screenshots before/after for front-end changes
  • Documentation has been updated or is not required
  • Backports requested where applicable
  • Labels added where applicable
  • Milestone added where applicable

Tests

  • ../vendor-bin/phpunit/vendor/bin/phpunit -c phpunit-autotest.xml lib/Archive/TARTest.php --filter '/test.*/'
  • php --syntax-check lib/private/Archive/TAR.php
  • php --syntax-check tests/lib/Archive/TARTest.php

AI (if applicable)

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

@fwerkor fwerkor requested a review from a team as a code owner June 14, 2026 06:04
@fwerkor fwerkor requested review from Altahrim, ArtificialOwl, leftybournes and salmart-dev and removed request for a team June 14, 2026 06:04
Signed-off-by: Yuhang Cao <caoyuhang@fwerkor.com>
@fwerkor fwerkor force-pushed the fix/tar-hidden-archives branch from 7f56b01 to 5fe2d90 Compare June 14, 2026 06:19
@susnux susnux added the community pull requests from community label Jun 16, 2026
@AndyScherzinger AndyScherzinger added the 3. to review Waiting for reviews label Jun 21, 2026
@fwerkor fwerkor force-pushed the fix/tar-hidden-archives branch from b69c0ae to 5fe2d90 Compare June 28, 2026 11:29
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 community pull requests from community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants