заглушка на антивирус

This commit is contained in:
Рауф Латыпов 2024-08-21 13:12:52 +03:00
parent 44b4231a2a
commit 0dddcef837

View file

@ -72,15 +72,20 @@ public class FileUploadService {
String downloadUrl = fileUrl.fileUrl();
downloadFile(downloadUrl, filePath);
// todo активировать код в комментариях и отладить запросы к антивирусу SUPPORT-8507
/*
AvResponse avResponse = checkFile(filePath);
boolean infected = Arrays.stream(avResponse.verdicts())
.anyMatch(verdict -> verdict.equalsIgnoreCase("infected"));
*/
boolean infected = false;
if (infected) {
/*
sendMessage(outErrorTopic.name(),
new OutErrorMessage("file is infected", avResponse, inMessage)
);
*/
}
else {
String uploadUrl = httpFileServerOutAddress + "/" + fileUrl.fileName();