Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-52943

In D&M incorrect message is shown when virus is detected at multiple upload

    Details

      Description

      0.) Install Clam AntiVirus on your system.

      Windows:

      Linux environment:

      • download the (e.q. sudo apt-get install clamav for Ubuntu) and add /etc/lib to the classpath.
        (make sure clamscan working fine by checking in terminal: )
        clamscan --stdout --no-summary [path to test file]

      1.) Put these properties into portal-ext.properties file:

      dl.store.antivirus.enabled=true 
      dl.store.antivirus.impl=com.liferay.portlet.documentlibrary.antivirus.ClamAntivirusScannerImpl
      

      2.) Log in as Test Test user and upload an anti virus test file and an unaffected file to Documents and Media through Multiple Document uploader (Flash Player should be installed for that button to appear), I used eicar.com.txt downloaded from http://www.eicar.org/85-0-Download.html.

      Actual Result:

      Unaffected file can be uploaded without error, for the virus test file the following message is displayed however: "An unexpected error occurred while uploading your file." with no reference to the file being a virus (see screenshot.png).

      Expected result: "A virus was detected in the file."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yvonne.han Yvonne Han
              Reporter:
              zsolt.olah Zsolt Oláh (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 33 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.X EE