SUPPORT-8836:fixes
This commit is contained in:
parent
fb36447ecb
commit
162c605175
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ import ru.micord.ervu.av.s3.S3Service;
|
|||
*/
|
||||
@Service
|
||||
public class FileUploadService {
|
||||
private static final int INJECTED_CODE = 72;
|
||||
private static final int INFECTED_CODE = 72;
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(FileUploadService.class);
|
||||
@Value("${av.check.enabled}")
|
||||
private boolean avCheckEnabled;
|
||||
|
|
@ -95,7 +95,7 @@ public class FileUploadService {
|
|||
}
|
||||
}
|
||||
|
||||
if (isAvError || exitCode == INJECTED_CODE) {
|
||||
if (isAvError || exitCode == INFECTED_CODE) {
|
||||
downloadRequest.fileInfo().setFileUrl(null);
|
||||
FileStatus fileStatus = isAvError ? FileStatus.FILE_STATUS_11 : FileStatus.FILE_STATUS_02;
|
||||
downloadRequest.fileInfo().setFileStatus(fileStatus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue