working on bug with redaction service response
This commit is contained in:
yhampe 2024-12-18 10:09:55 +01:00
parent 2081588075
commit 47727a4b35
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ plugins {
jacoco
}
val redactionServiceVersion by rootProject.extra { "4.434.0-RED9472.1" }
val redactionServiceVersion by rootProject.extra { "4.436.0-RED9472.9" }
val pdftronRedactionServiceVersion by rootProject.extra { "4.90.0-RED10115.0" }
val redactionReportServiceVersion by rootProject.extra { "4.81.0" }
val searchServiceVersion by rootProject.extra { "2.90.0" }

View File

@ -77,6 +77,7 @@ public class RulesController implements RulesResource {
try {
ResponseEntity<RulesUploadResponse> mergedRules = ruleBuilderClient.mergeUserUpdateRules(rulesUpdateRequest);
log.info("response: " + mergedRules);
if (mergedRules == null || mergedRules.getBody() == null) {
throw new BadRequestException("Failed to merge rules - received null response from service");
}
@ -93,7 +94,6 @@ public class RulesController implements RulesResource {
} catch (FeignException e) {
if (e.status() == HttpStatus.BAD_REQUEST.value()) {
log.info("exception: " + e);
throw new BadRequestException("The provided rule file is not a valid drools rule file!");
}
throw new BadRequestException("Failed to merge rules: " + e.getMessage());