Detect valid archives
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Python
- スター
- 84
- フォーク
- 41
- 平均マージ
- 6日 12時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Changaco/python-libarchive-c のほかの issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 51/100
Changaco/python-libarchive-c#144 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
Changaco/python-libarchive-c#143 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Changaco/python-libarchive-c#129 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
Changaco/python-libarchive-c#122 · コメント 1 件 ·
-
Type checkingオープンfeature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Changaco/python-libarchive-c#111 ·
Changaco/python-libarchive-c の issue をすべて見る
似ている issue
-
factory
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Arize-ai/phoenix#17420 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
FireDynamics/LEDSmokeAnalysis#176 ·
メンテナーはふだん 1 日以内に返信
-
PC
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
dlt-contrib/dlt-filesystem#51 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信