Throw an error in fileScan() in case of ClamAV error rather than returning `true`
まだ誰も着手していません。
評価
調査の方向性
php-clamav のコード内で fileScan() を見つけ、SCAN の出力に OK が含まれない場合にどのように解釈されるかを確認します。報告された ClamAV のファイルパスエラーを再現し、true を返すのではなく Exception が発生することを検証します。既存のテスト構成で対応できる場合は、対象を絞ったテストを追加または更新します。
索引モデルが issue の本文から書いたものです。
説明
I've had an issue where a mount wasn't working in a docker container with ClamAV, so SCAN command was returning something like this:
/clamav_tmp/file.docx: File path check failure: No such file or directory
I've been using fileScan() in php-clamav and since it did not find 'OK' in ClamAV output, it returned true which led to all files scanned being silently marked as having a virus.
I think this should instead have caused an Exception, so that it's clear that there is an issue with the scanning.
- 主要言語
- PHP
- スター
- 73
- フォーク
- 31
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
appwrite/php-clamav のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
appwrite/php-clamav#33 · コメント 2 件 · リアクション 1 件 ·
-
🚀 Feature: DSN support再び着手できるかも @joeyouss が 1236 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
appwrite/php-clamav#28 · コメント 1 件 · リアクション 2 件 · 担当者 1 名 ·
-
🐛 Bug Report: ClamAv::fileScanInStream does not detect eicar.com file対応中かも @vagiguere が 1243 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
appwrite/php-clamav#26 · コメント 3 件 · リアクション 1 件 ·
appwrite/php-clamav の issue をすべて見る
似ている issue
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nextcloud/integration_openai#446 ·
-
bug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MagnaCapax/PMSS#1101 ·
メンテナーはふだん 5 日以内に返信
-
Installation / Upgrade Platform: Docker
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信