-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.1.X EE, 6.2.X EE, 7.0.0 M1, 7.0.0 M3
-
Fix Version/s: 6.2.3 CE GA4, 6.2.X EE, 7.0.0 M4
-
Component/s: Documents & Media
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Story Points:12
-
Git Pull Request:
1. install clamAv virus scanner:
Windows:
- download http://sourceforge.net/projects/clamwin/files/clamwin/0.98.5/clamwin-0.98.5-setup.exe/download
- install with default settings
- after install and database update, copy C:\ProgramData\.clamwin\db directory to C:\Program Files (x86)\ClamWin\bin\
- add C:\Program Files (x86)\ClamWin\bin\ to PATH
(make sure clamscan working fine by checking in terminal: )
clamscan --stdout --no-summary [path to test file]
(You should see output message like clam-output.png)
2. Put these properties into portal-ext.properties file:
dl.store.antivirus.enabled=true dl.store.antivirus.impl=com.liferay.portlet.documentlibrary.antivirus.ClamAntivirusScannerImpl
3. Start liferay
4. Log in as Test Test user and go to admin >content > documents and media
5. upload an anti virus test file to Documents and Media, I used eicar.com.txt downloaded from http://www.eicar.org/85-0-Download.html
Expected result: a message on Documents and Media portlet, saying "A virus was detected in the file."
Actual result: "Unable to scan file for viruses." (picture)
reproduced on master