заглушка на антивирус
This commit is contained in:
parent
44b4231a2a
commit
0dddcef837
1 changed files with 6 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue