DEB extraction silently omits control metadata and debian-binary

Abierto
#263 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
cpp
Área
desktop, tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

  1. Use a valid .deb containing debian-binary, control.tar.xz, and data.tar.xz.
  2. Open it normally in 7-Zip File Manager on Windows.
  3. 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

Lenguaje dominante
C++
Estrellas
4.6k
Forks
519
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ip7z/7zip

Todos los issues de ip7z/7zip

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.