SUPPORT-9156: fix
This commit is contained in:
parent
823eb51905
commit
f0990fb1bb
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ public class FileScanService {
|
||||||
private static final String KESL_SCAN = "--scan-file";
|
private static final String KESL_SCAN = "--scan-file";
|
||||||
private static final int CLEAN_CODE = 0;
|
private static final int CLEAN_CODE = 0;
|
||||||
private static final int INFECTED_CODE = 72;
|
private static final int INFECTED_CODE = 72;
|
||||||
private static final int PROTECTED_CODE = 73;
|
private static final int PASS_PROTECTED_CODE = 73;
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(FileScanService.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(FileScanService.class);
|
||||||
@Value("${file.upload.directory:/tmp/uploaded_files}")
|
@Value("${file.upload.directory:/tmp/uploaded_files}")
|
||||||
private String uploadDirectory;
|
private String uploadDirectory;
|
||||||
|
|
@ -82,7 +82,7 @@ public class FileScanService {
|
||||||
LOGGER.warn("File: {} is identified as password protected. Please review the file.",
|
LOGGER.warn("File: {} is identified as password protected. Please review the file.",
|
||||||
originalFileName
|
originalFileName
|
||||||
);
|
);
|
||||||
exitCode = PROTECTED_CODE;
|
exitCode = PASS_PROTECTED_CODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return exitCode;
|
return exitCode;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue