getting issue while uploading file in serenity "an error occurred while scanning the uploaded file for viruses" #7120
Replies: 5 comments 4 replies
-
Assuming you are sure that there is nothing really wrong with the file you are uploading... I am looking forward to hearing more information or other people's experience about this. I found that I had to disable ClamAV on a production server because it was somehow competing with the installed virus scanning stuff on that server. The IT guys assured me that this would be okay to do, and I had no experience with the anti-virus stuff they were using. |
Beta Was this translation helpful? Give feedback.
-
Disable clamav or install clamav |
Beta Was this translation helpful? Give feedback.
-
@VictorTomaili I find your response somewhat mystifying, although I do thank you for causing me to look into the code further. I understand this (now) based on the notes in ClamAVUploadScanner.cs, not from the ChangeLog or the appsettings file, both of which I had read, and thought I understood, previously. Here's why the links, and your response, were mystifying to me: yes there is a note in the changelog for 6.7.0, which is aimed at people who are upgrading an existing project:
However, if you are starting a project on 6.7.0+, the two change to Startup.cs are made by default and ClamAV is set enabled by default in appsettings.json as well. Meanwhile, in appsettings.Development.json, ClamAV is set disabled, also by default, which is why we would not notice anything was wrong until we deployed to Production. You made use of ClamAV the default behavior without explicitly specifying a requirement for deployment (installing ClamAV) and then you masked the behavior in development environments. Do you really think this is appropriate? Do you really think your answer was sufficient? There is no mention of this deployment or configuration requirement in Getting Started, Troubleshooting, FAQs, etc. Or a link in Tools & Libraries to ClamAV, FWIW. |
Beta Was this translation helpful? Give feedback.
-
Yes, if we left it disabled in development, anyone who created a new project from Serene/StartSharp would have issues during development and would have to install ClamAV. If we did not enable it for production, it would be considered a security hole as reported by that company. Why would you want it to be enabled in a development machine. I would prefer users to read change log or search issues instead of having a security hole. And error message cant tell you the main issue as the virus scanner interface can be implemented in another way |
Beta Was this translation helpful? Give feedback.
-
And where would that info be listed. You see it in exception log. This reminds me of the feature of not running migrations on arbitrary db. Even if we listed it the guide, docs and the login page, people still didnt read any, and we got hundreds of repeated issues, even screenshots of login page with the message that explains what they should do. Eventually we removed that. We will not remove this security check. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions