掲示板

Scanning virus in files during upload

9年前 に venka reddy によって更新されました。

Scanning virus in files during upload

Regular Member 投稿: 231 参加年月日: 11/03/23 最新の投稿
Hi ,

Whenever i am uploading the files, it should be scanned for virus. so i found the following properties in portal.properties

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


So i have updated these properties in my portal-ext.properties. Then i tried to upload the files it throws an error "Unable to Scan the file" .

Is anything i am missing?
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: Scanning virus in files during upload

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Did you install Clam AV?
9年前 に venka reddy によって更新されました。

RE: Scanning virus in files during upload

Regular Member 投稿: 231 参加年月日: 11/03/23 最新の投稿
No, will install and try it.
8年前 に Nabil Bahtat によって更新されました。

RE: Scanning virus in files during upload

New Member 投稿: 13 参加年月日: 13/10/10 最新の投稿
Hi,
When I uploadafile,I have this message "Unable to scan file for viruses".
I'm using Liferay 6.2 CE
I installed clamav and it works mannually with EICARE test file
I set these propertiesin portal-ext.properties
dl.store.antivirus.enabled=true
dl.store.antivirus.impl=com.liferay.portlet.documentlibrary.antivirus.ClamAntivirusScannerImpl

Thanks
Nabil
thumbnail
8年前 に David H Nebinger によって更新されました。

RE: Scanning virus in files during upload

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Check the logs for issues invoking clamav. might not be able to find it, might be a path issue, a permissions issue, ...
thumbnail
8年前 に Kailash Yadav によって更新されました。

RE: Scanning virus in files during upload

Regular Member 投稿: 211 参加年月日: 11/10/18 最新の投稿
If you don't find any useful information in Liferay's logs. check Clam's logs. Clam return following values after scan file:
0 : No virus found.
1 : Virus(es) found.
2 : An error occured.


If you are facing this issue on local env, you can debug ClamAntivirusScannerImpl.scan(File file) method