-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QA] cannot upload files larger than ca. 20 MB #443
Comments
This implements the hotfix suggsted in #443
@jnweiger here is the C-ICAP response line by line... There is no Content-Length there:
Is it possible to have a similar response from mcAfee? |
In fact we don't need the whole response - we can read it line by line until the target header is found or EOF marker. |
What I saw from McAfee had a Content-Length. Seems that ClamAv does not do that. But in any case, we |
Here is a response I saw from McAfee (\r and \n added to make the line endings clear)
|
here is the response of McAfee on a clean file:
Neither Content-Length nor anything meaningful is passed along in this case. |
Implemented in #445 solution: on ICAP status 204 we stop further reading and consider the file to be clean. |
Confirmed "improved" in files_anntivirus-1.0.0-rc3 (including #445).
The failures show this message: Workaround: Patch the timeout to be 5 minutes. -> #446
Ubuntu 20.04 ships with |
I can say only that timeout should be set at the sane value that considers:
I see no universal value except |
@GeraldLeikam #445 might improve the situation here. Please retest with |
Seen with files_antivirus 1.0.0-rc2 running on https://oc1070-macafee-20210519.jw-qa.owncloud.works/owncloud connected to
Ralf's McAfee ICAP instance. Both ownCloud and McAfee are on separate hetzner machines. Thus file transfer times matter.
When the timeout occurs ownCloud reports
Unknown ICAP response: ""
and blocks the upload.An exe file of ca 18 MB sporadically hits the limit. Bigger files (33, 41, 81, 125 MB as e.g. listed below) hit the limit reliably.
https://download.owncloud.com/desktop/ownCloud/stable/latest/win/ (ca 18 MB)
https://inkscape.org/gallery/item/8396/Inkscape-0.48.5-1-win32.exe (33 MB)
https://inkscape.org/gallery/item/3944/Inkscape-0.91-1.exe (41 MB)
https://inkscape.org/gallery/item/18066/inkscape-0.92.5-x64.msi (82 MB)
https://media.inkscape.org/dl/resources/file/inkscape-1.0.2-2-x64.msi (125 MB)
The timeout was introduced for McAfee, but also affects ClamAV and Kasperky.
Bad workaround:
Acceptable hotfix:
processes all these files, and takes 5 times faster on small files, than the current implementation.
ICAP compliant implementation:
The text was updated successfully, but these errors were encountered: