Merge branch 'RED-9782-fix-bp' into 'release/4.348.x'

RED-9782: Automated Analysis should be disabled when uploading a document that...

See merge request redactmanager/redaction-service!484
This commit is contained in:
Maverick Studer 2024-08-12 18:40:56 +02:00
commit b4ecbde89e

View File

@ -130,7 +130,10 @@ public class EntityFromPrecursorCreationService {
} else {
String section = precursorEntity.getManualOverwrite().getSection()
.orElse(null);
if (section != null && precursorEntity.getEngines().contains(Engine.IMPORTED) && section.isBlank() && !precursorEntity.getSection().isBlank()) {
if ((section == null || section.isBlank())
&& precursorEntity.getSection() != null
&& !precursorEntity.getSection().isBlank()
&& precursorEntity.getEngines().contains(Engine.IMPORTED)) {
section = precursorEntity.getSection();
}