Open xthursdayx opened 4 years ago
This is the contacts repository... Moving!
This is the contacts repository... Moving!
Sorry about that! Didn't notice.
Hi! I have encountered the same problem. As you can read here, it is ClamAV that detects Potentially Unwanted Applications. You can disable this behavior: https://docs.clamav.net/faq/faq-pua.html This is what I did, previously I was using this Docker image with PUA enabled by default. Now, I use this offical image : https://hub.docker.com/r/clamav/clamav and PUA is disabled by default. So, it is not a bug for the files_antivirus app.
Describe the bug
I run Nextcloud in a docker container on my linux server and use clamAV running in a separate container to scan the files, via the "Antivirus for files" (2.1.1) app. I use Nextcloud to sync a large library of academic PDFs, however for some reason a significant number of my PDF files are being incorrectly marked as being infected with a Trojan virus and then will not sync. When this happens I receive the error
"415 Unsupported Media Type" to "PUT filename.pdf" (PUA.Pdf.Trojan.EmbeddedJavaScript-1 is detected. Upload cannot be completed)
. These files are seemingly no different than other PDFs that sync with no trouble and they are the same file type (obviously). I've also run tested them with multiple other virus scanners and they are clean. My Antivirus for files settings areMode: Daemon, Stream Length: 26214400 bytes, When infected files are found during a background scan: only log
Does any one have any idea how I can fix this without completely disabling my antivirus?To Reproduce Add certain pdfs to synced folder.
Expected behavior That the pdf will be scanned by the antivirus program and then sync.
Actual behavior The files will not sync and receive a false Trojan positive.
Server configuration
Operating system: Windows, Linux, MacOS... Linux Docker
Web server: Nginx
Database: MariaDB
PHP version: 7.2.19
Nextcloud version: 16.0.4
Contacts version: (see Nextcloud apps page) 3.1.3
Updated from an older Nextcloud or fresh install: Existing install
Signing status:
List of activated apps:
Nextcloud configuration:
Client configuration
Browser: Brave/Firefox
Operating system: MacOS
CardDAV-clients: Joplin Fantastical MacOS contacts & calendars iOS contacts & calendars Thunderbird
Logs
Web server error log
Nextcloud log
data/nextcloud.log
Browser log
N/A