Skip to content

fix(compressor): fix MIME type detection failure for spanned ZIP files#427

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:release/eaglefrom
dengzhongyuan365-dev:release-eagle-sync
Jun 11, 2026
Merged

fix(compressor): fix MIME type detection failure for spanned ZIP files#427
deepin-bot[bot] merged 1 commit into
linuxdeepin:release/eaglefrom
dengzhongyuan365-dev:release-eagle-sync

Conversation

@dengzhongyuan365-dev

Copy link
Copy Markdown
Member
  • Some spanned ZIP files start with PK\x07\x08 signature (non-standard PK\x03\x04), which Qt MIME detection cannot recognize
  • When file extension is .zip but content detection returns non-ZIP type, fall back to file command for re-detection

Qt 无法识别以 PK\x07\x08 开头的分卷 ZIP 文件,当扩展名为 .zip
但内容检测结果非 ZIP 类型时,回退使用 file 命令二次检测以确保
正确识别。

PMS: ztgd2026060900011

Influence: spanned ZIP files can be correctly detected and extracted

- Some spanned ZIP files start with PK\x07\x08 signature (non-standard
  PK\x03\x04), which Qt MIME detection cannot recognize
- When file extension is .zip but content detection returns non-ZIP type,
  fall back to file command for re-detection

Qt 无法识别以 PK\x07\x08 开头的分卷 ZIP 文件,当扩展名为 .zip
但内容检测结果非 ZIP 类型时,回退使用 file 命令二次检测以确保
正确识别。

PMS: ztgd2026060900011

Influence: spanned ZIP files can be correctly detected and extracted

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @dengzhongyuan365-dev, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dengzhongyuan365-dev, lzwind

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dengzhongyuan365-dev

Copy link
Copy Markdown
Member Author

/forcemerge

@deepin-bot deepin-bot Bot merged commit eb05bf1 into linuxdeepin:release/eagle Jun 11, 2026
16 checks passed
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.

3 participants