заглушка на антивирус
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();
|
String downloadUrl = fileUrl.fileUrl();
|
||||||
downloadFile(downloadUrl, filePath);
|
downloadFile(downloadUrl, filePath);
|
||||||
|
|
||||||
|
// todo активировать код в комментариях и отладить запросы к антивирусу SUPPORT-8507
|
||||||
|
/*
|
||||||
AvResponse avResponse = checkFile(filePath);
|
AvResponse avResponse = checkFile(filePath);
|
||||||
|
|
||||||
boolean infected = Arrays.stream(avResponse.verdicts())
|
boolean infected = Arrays.stream(avResponse.verdicts())
|
||||||
.anyMatch(verdict -> verdict.equalsIgnoreCase("infected"));
|
.anyMatch(verdict -> verdict.equalsIgnoreCase("infected"));
|
||||||
|
*/
|
||||||
|
boolean infected = false;
|
||||||
if (infected) {
|
if (infected) {
|
||||||
|
/*
|
||||||
sendMessage(outErrorTopic.name(),
|
sendMessage(outErrorTopic.name(),
|
||||||
new OutErrorMessage("file is infected", avResponse, inMessage)
|
new OutErrorMessage("file is infected", avResponse, inMessage)
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
String uploadUrl = httpFileServerOutAddress + "/" + fileUrl.fileName();
|
String uploadUrl = httpFileServerOutAddress + "/" + fileUrl.fileName();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue