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

Regression: Clamav reporting errors when scanning external repo files

    Details

    • Testing Instructions:
      Hide
      1. Make sure that you are using clamdscan for virus checking in Moodle settings.
      2. Make sure that Moodle data directory permissions does not allow others read/execute (e.g. chmod 700 /path/to/moodledata).
      3. Make sure you have at least one external repo that allows files importing (e.g. Flickr public).
      4. Create file resource, choose adding new file and use external repo to chose file from. You should not get any errors, file should be successfully imported.
      5. Replicate steps above using clamscan
      Show
      Make sure that you are using clamdscan for virus checking in Moodle settings. Make sure that Moodle data directory permissions does not allow others read/execute (e.g. chmod 700 /path/to/moodledata). Make sure you have at least one external repo that allows files importing (e.g. Flickr public). Create file resource, choose adding new file and use external repo to chose file from. You should not get any errors, file should be successfully imported. Replicate steps above using clamscan
    • Workaround:
      Hide

      A couple of options here:

      1. Write a wrapper for clamdscan which adds the --fdpass option and use that instead; or
      2. Use clamscan instead. This is a last resort as it adds a massive performance hit.
      Show
      A couple of options here: Write a wrapper for clamdscan which adds the --fdpass option and use that instead; or Use clamscan instead. This is a last resort as it adds a massive performance hit.
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      MDL-34939-master

      Description

      when a user uploads/selects a file from an external repo (google docs, picasa, flickr)
      Clam av has trouble processing the file and sends an e-mail to the admin:

      Clam AV has failed to run. The return error message was An error occured. 
      Here is the output from Clam:
       
      /temp/download/filename.rtf: Can't open file or directory  ERROR 
      ----------- SCAN SUMMARY ----------- 
      Infected files: 0 
      Total errors: 1 
      Time: 0.005 sec (0 m 0 s) 
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13