Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-76767

Specifying pathtoclam in config.php not reflected in Web UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Trivial Trivial
    • None
    • 4.0.5, 4.1
    • Antivirus
    • None
    • MOODLE_400_STABLE, MOODLE_401_STABLE

      UPDATE: With apologies this isn't a bug, as clamav is a plugin in it's own right, I shouldn't have tried to set it as a global. See Paul Holden's comment below.

      Testing instructions

      1. Install clamav on a Moodle server
      2. Enable the clamav antivirus plugin via /admin/category.php?category=antivirussettings
      3. Check that path is not configured at /admin/settings.php?section=antivirussettingsclamav
      4. Add the directive  $CFG->pathtoclam = '/usr/bin/clamscan'; to config.php
      5. Repeat step 3 - Check that path is not configured at /admin/settings.php?section=antivirussettingsclamav
      6. (Optional) check that clamav actually works regardless.

       

      The expected behavior is that pathtoclam should work exactly as other system paths do and not suggest to admins that the pathtoclam has not been configured when it actually has. This is particularly important when $CFG->preventexecpath = true; is also set, as it gives the appearance that clamav hasn't and cannot be set when in reality the status of pathtoclam is unknown.

       

            Unassigned Unassigned
            adamj Adam Jenkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.