Detect valid archives
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 32/100
Línea de trabajo
Start by reading how python-libarchive-c opens archives and handles libarchive warnings, then compare that behavior with the previous python-libarchive behavior described in the issue. Determine whether invalid archive input can be detected or surfaced as a catchable error; done means documenting or implementing a clear way to detect this case. The issue names no files or tests, so locate the relevant entry points and tests first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I'm in the process of migrating from python2 using python-libarchive to python3 using python-libarchive-c. In all, the process has been quite easy (and many thanks to you folks for keeping a similar interface). However, I have run in to a bit of a snag.
I've been detecting whether or not a file is a legitimate archive based on trying to open it and detect errors. This works well for most files, but has been failing when I feed it something that looks like a /etc/passwd file. Previously, when libarchive returns Missing type keyword in mtree specification, the old python-libarchive would raise a ValueError. Now, this simply produces a Warning to the logger and the process continues.
Is there an easy way to make this produce an error that I can catch or otherwise detect invalid archives?
- Lenguaje dominante
- Python
- Estrellas
- 84
- Forks
- 41
- Merge medio
- 6 d 12 h
- PR fusionados (30 d)
- 1
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Changaco/python-libarchive-c
-
feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 51/100
Changaco/python-libarchive-c#144 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
Changaco/python-libarchive-c#143 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Changaco/python-libarchive-c#129 ·
-
Suggestion: Test fileAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
Changaco/python-libarchive-c#122 · 1 comentario ·
-
Type checkingAbiertofeature
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Changaco/python-libarchive-c#111 ·
Todos los issues de Changaco/python-libarchive-c
Issues similares
-
Context/namespace resources fail in-cluster: "Invalid kube-config file. No configuration found."Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
bug documentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
awslabs/visual-asset-management-system#880 ·
Los mantenedores suelen responder en 1 día
-
netbox status: needs owner type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
netbox-community/netbox#23533 ·
Los mantenedores suelen responder en 1 día
-
app: scripts status: backlog type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
netbox-community/netbox-scripts#68 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
marin-community/marin#10765 ·
Los mantenedores suelen responder en 1 día