Detect valid archives
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 32/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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?
- Linguagem predominante
- Python
- Estrelas
- 84
- Forks
- 41
- Merge médio
- 6d 12h
- PRs com merge (30d)
- 1
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Changaco/python-libarchive-c
-
feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 51/100
Changaco/python-libarchive-c#144 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 52/100
Changaco/python-libarchive-c#143 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
Changaco/python-libarchive-c#129 ·
-
Suggestion: Test fileAberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 20/100
Changaco/python-libarchive-c#122 · 1 comentário ·
-
Type checkingAbertafeature
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Changaco/python-libarchive-c#111 ·
Todas as issues de Changaco/python-libarchive-c
Issues semelhantes
-
area/profiles comp/cli P3 type/feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
NousResearch/hermes-agent#146372 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistenciesTalvez já em andamento @github-actions assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
GeoSeries scale and skew tests fail with pytest 9.2.0Talvez já em andamento @jiayuasu assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
admission-deferred priority: medium status: ready work-class: scoped
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
melodic-software/claude-code-plugins#10887 · 4 comentários ·
Mantenedores costumam responder em até 1 dia