ClamAV messages misleading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Mahara: 17.10.2
OS: Ubuntu 16.04
DB: Postgres
Browser: n/a
ClamAV is catching files with viruses. Great!
But, the messages it's generating are quite misleading.
=======
The system message (in inbox) it generates is:
On 9/03/2018, 1:26 PM, "ePortfolios" <email address hidden> wrote:
You have been sent a notification from ePortfolios. Message follows:
-------
Subject: ePortfolios :: ClamAV notification
ClamAV has failed to run. The return error message was An error occurred. Here
is the output from ClamAV:
ERROR: Can't access file /var/lib/
----------- SCAN SUMMARY -----------
Infected files: 0
Total errors: 1
Time: 0.165 sec (0 m 0 s)
The file has been moved to a quarantine directory.
-------
=======
When in fact, it did catch the file and quarantined it:
-rw-r--r-- 1 www-data www-data 106K Mar 9 02:26 20180309132649-
=======
And, in the error log file, the following is logged:
Mar 9 13:26:50 0c200fda6b66 mahara: 2018/03/09 13:26:50 [error] 195#195:
*4511 FastCGI sent in stderr: "PHP message: [DBG] e4 (lib/uploadmana
The file has been moved to a quarantine directory and the new path is /var/lib/
#012PHP message: [WAR] e4 (import/
#012PHP message: Call stack (most recent first):
#012PHP message:
* PluginImportFil
* PluginImportFil
* send_content_
* api_dummy_
* xmlrpc_
* Dispatcher-
//unix:
Which says "Your administrator has enabled virus checking for file uploads but has misconfigured something" (and this is what appears to the user).
But, the virus checking is not misconfigured. It's actually working.
=======
1. The message displayed to the user needs to reflect the correct activity - that their file has been a virus and that they really should not try to upload it at a later time.
2. The message logged in the log file should include the new (updated) message from 1.
3. The SCAN SUMMARY is also incorrect. 'Infected files' is 0 and 'Total errors' is 1. When it should be the other way around.
Changed in mahara: | |
status: | New → Invalid |