hotfix: fixed to long section value of manual redaction in saas migration

This commit is contained in:
Dominique Eifländer 2024-03-11 15:31:08 +01:00
parent bd3fb2695d
commit f0105efa62

View File

@ -240,6 +240,12 @@ public class SaasMigrationService implements TenantSyncService {
private int addManualRedactionEntries(List<ManualRedactionEntry> manualRedactionEntriesToAdd) {
manualRedactionEntriesToAdd.forEach(add -> {
if(add.getSection().length() > 254){
add.setSection(add.getSection().substring(0, 254));
}
});
return manualRedactionService.addManualRedactionEntries(manualRedactionEntriesToAdd, true);
}