DEB extraction silently omits control metadata and debian-binary
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
Hướng nghiên cứu
Start with CPP/7zip/Archive/ArHandler.cpp, focusing on the DEB handler’s _items.DeleteFrontal(1) and _mainSubfile behavior. Reproduce with a valid .deb containing debian-binary, control.tar.xz, and data.tar.xz; compare normal browsing and extraction with Open Inside *. Done means default browsing and extraction preserve all outer members, including debian-binary, or a discoverable option provides that behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
A .deb archive contains more than its installation payload. Normal opening/extraction in 7-Zip automatically descends into data.tar., hiding control.tar. from the normal view and omitting it from default extraction. Please reconsider this as an archive extraction completeness/correctness issue.
Related historical report: https://sourceforge.net/p/sevenzip/bugs/1472/ (created 2015, status open-wont-fix, last updated 2019).
Reproduction
- Use a valid .deb containing debian-binary, control.tar.xz, and data.tar.xz.
- Open it normally in 7-Zip File Manager on Windows.
- Compare normal browsing/extraction with File > Open Inside * and extraction from the outer view.
In the observed Windows 11 session, normal opening shows only data.tar; Open Inside * exposes control.tar.xz and data.tar.xz. Default extraction also omits control metadata, as observed by the reporter. The exact installed 7-Zip version has not yet been recorded; this is not a claim of testing the latest release.
Expected behavior
Default browsing and extraction should expose and preserve ALL outer archive members, including control.tar.* and debian-binary. Payload-only extraction can be a separately labeled convenience operation.
Impact
control.tar.* contains package metadata and may contain maintainer scripts. Omitting it prevents complete inspection and produces an incomplete representation of the package without an explicit warning. An archiver should not silently decide that archive members are unimportant.
Two distinct source behaviors
https://github.com/ip7z/7zip/blob/main/CPP/7zip/Archive/ArHandler.cpp
The DEB handler removes debian-binary from its item list with _items.DeleteFrontal(1), and sets data.tar.* as _mainSubfile, exposed via kpidMainSubfile. Thus automatic payload descent and suppression of debian-binary are separate problems. Open Inside * / -t* restores access to control.tar.*, but does not restore debian-binary.
Requested resolution
Please make complete outer-archive browsing/extraction the default, or provide a persistent, discoverable option covering both File Manager opening and Explorer extraction commands. Complete/raw extraction must include debian-binary as well. Keep payload-only extraction as an explicitly labeled operation if desired.
Debian format specification: https://manpages.debian.org/unstable/dpkg-dev/deb.5.en.html
- Ngôn ngữ chính
- C++
- Star
- 4.6k
- Fork
- 519
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ip7z/7zip
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area::installer documentation engine::sd enhancement wg::platform-core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
lemonade-sdk/lemonade#4349 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python example: list a model's scenes and their camerasCó thể đã có người làm @rudraparmar76 đã nhận hôm nay. Đang mởdocumentation good first issue python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
iamahsanmehmood/openskp#796 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tenstorrent/tt-umd#4183 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
odelaneau/GLIMPSE#353 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày