files_antivirus icon indicating copy to clipboard operation
files_antivirus copied to clipboard

"Tried to scan non file" with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404.

Open Arveen205 opened this issue 1 year ago • 1 comments

          We are encountering the same issue with Nextcloud 28.0.10, Antivirus for files 5.5.7, and ClamAV 0.103.12/27404.

I deleted all records using the command DELETE FROM oc_files_antivirus; and then ran the command sudo -u www-data php /var/www/nextcloud/occ files_antivirus:background-scan. However, the warnings still appear when I check the status using the command sudo -u www-data php /var/www/nextcloud/occ -v files_antivirus:status

Warning: No file found for file 51
Warning: No file found for file 59
Warning: No file found for file 105
Warning: No file found for file 106
Warning: No file found for file 107
Warning: No file found for file 108

I searched for these file IDs in the database using the query SELECT * FROM oc_filecache WHERE fileid = 51;, and I got something like this: appdata_bnkxbpkzmrty/theming/global/0/favIcon-core#0082c9.

This file existed, but after reviewing the PHP code for the background scan, I noticed that it doesn't check files under appdata_. That's why these warnings are being displayed.

PLEASE FIX IT :)

Originally posted by @Arveen205 in https://github.com/nextcloud/files_antivirus/issues/207#issuecomment-2363443002

Arveen205 avatar Sep 20 '24 12:09 Arveen205

PR #364 attempts to fix this

zero0cool0 avatar Sep 22 '24 07:09 zero0cool0