ClamAV path missing/not detected. No option to provide path to Clamav

Bug #1078591 reported by Sijo Louis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Aaron Wells
Mahara manual
Fix Released
Low
Kristina Hoeppner

Bug Description

Been getting the error, "ClamAV is configured to run on file upload, but the path supplied to ClamAV, , is invalid." in v1.6+, after enabling virus checking under the site options. Unlike v1.5.2 (which I had been using earlier), there is no way to insert the path of the Clamav either, or atleast it is not showing up.

Server Environment:
- Mahara 1.6.1
- Ubuntu 12.04.1 server
- Postgres 9.1

Client Environment:
- Tried on Firefox, Chrome (iOS & Win7), IE, Safari (iOS & Win7)

Revision history for this message
lexsimon (lexsimon) wrote :

Im pretty new to mahara but it seems you just have to edit your config.php file and add :
$cfg->pathtoclam = 'YOUR_PATH_TO_CLAMSCAN';

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Sijo,

lexsimon is correct, due to a security bug, the admin interface to edit the pathtoclam was removed. You now have to do it via the config.php file.

I will keep this bug open so that we can show the admin a warning when they enable the scanning.

Cheers,

Hugh

Changed in mahara:
status: New → Triaged
importance: Undecided → Low
milestone: none → 1.7.0
Revision history for this message
Melissa Draper (melissa) wrote :

I've targeted this to the manual too, so that appropriate notes can be made on the following page to explain what needs to happen.

http://manual.mahara.org/en/1.6/administration/config_site.html?highlight=clam

Revision history for this message
Sijo Louis (joelouis-in) wrote :

Thanks Lexsimon, that solved the problem.

Also thanks to Hugh for the insight. It would be nice to include an additional small note in that info icon popup next to the 'enable virus scanning'. Or may be an additional note with the current error text, when saved (on the setting page).

Yes Melissa, I checked the manual and didn't see a mention about it, so created the bug, it would be helpful to have it in the manual. Thanks.

Changed in mahara-manual:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Kristina Hoeppner (kris-hoeppner)
Changed in mahara-manual:
milestone: none → 1.6.1
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.7.0 → 1.8.0
Revision history for this message
Aaron Wells (u-aaronw) wrote :

Just had a forum post about this today: https://mahara.org/interaction/forum/topic.php?id=5584

Changed in mahara:
assignee: nobody → Aaron Wells (u-aaronw)
Revision history for this message
Aaron Wells (u-aaronw) wrote :

Okay, I've made it so the web interface tells you to set it in config.php, and shows you the current value: https://reviews.mahara.org/2380

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/2380
Committed: http://gitorious.org/mahara/mahara/commit/cbd30f8254c18a1415292c363d6c2108d64d345e
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit cbd30f8254c18a1415292c363d6c2108d64d345e
Author: Aaron Wells <email address hidden>
Date: Mon Jul 29 13:34:25 2013 +1200

Provide some documentation of the pathtoclam setting

Bug 1078591

Change-Id: Ica1de7ce33d56de4a97f6e0a12dfad6d6591b788

Aaron Wells (u-aaronw)
Changed in mahara:
status: Triaged → Fix Committed
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.8rc1 → 1.8.0
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Tagged with "nominatedfeature" for the addition of the path in the web interface.

tags: added: nominatedfeature
Aaron Wells (u-aaronw)
Changed in mahara:
status: Fix Committed → Fix Released
Changed in mahara-manual:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.