Skip to content

VirusScan during upload failed for pdf file 37 MB #28

@dimipapadeas

Description

@dimipapadeas

During an attempt to upload a pdf file (37 MB size), it seems that the virusScan failed with no error message.

We saw that the failure was in io.sensesecure.clamav4j.ClamAV class at
scan(InputStream inputStream, InetSocketAddress address, int timeout) method.

com.eurodyn.qlack.util.av.api.exception.VirusScanException: Could not check file for virus
	at com.eurodyn.qlack.util.clamav.service.impl.ClamAvServiceImpl.virusScan(ClamAvServiceImpl.java:71)
[...]
2022-01-11 15:50:27.225 ERROR 18360 --- [io-8080-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.eurodyn.qlack.common.exception.QExceptionWrapper: Could not validate pdf.] with root cause
[...]
com.eurodyn.qlack.common.exception.QExceptionWrapper: Could not validate pdf.
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)

Regards,
Dimitris

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions