RED-9782:Automated Analysis should be disabled when uploading a document that contains redactions from RedactManager

* manual reanalysis of files with disabled automatic analysis now executes a normal reanalysis again
This commit is contained in:
maverickstuder 2024-08-09 16:13:49 +02:00
parent 9be0fad408
commit 9d9c674bb5

View File

@ -297,7 +297,9 @@ public class FileStatusService {
.fileAttributes(convertAttributes(fileEntity.getFileAttributes(), dossier.getDossierTemplateId()))
.build();
if (fileEntity.isExcludedFromAutomaticAnalysis() && fileManagementStorageService.objectExists(dossierId, fileId, FileType.IMPORTED_REDACTIONS)) {
if (fileEntity.isExcludedFromAutomaticAnalysis() && !manualRedactionReanalyse && fileManagementStorageService.objectExists(dossierId,
fileId,
FileType.IMPORTED_REDACTIONS)) {
analyseRequest.setMessageType(MessageType.IMPORTED_REDACTIONS_ONLY);
}