Skip to content

Commit a2b2082

Browse files
1 parent 95ad9f5 commit a2b2082

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/edu/stanford/protege/webprotege/gateway/FormsController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public ResponseEntity<Map<String, Object>> setForms(@PathVariable(PROJECT_ID) Pr
5151
// formDescriptors
5252
// formSelectors
5353
try {
54+
CorrelationMDCUtil.setCorrelationId(UUID.randomUUID().toString());
5455
var tree = objectMapper.readValue(forms, new TypeReference<Map<String, Object>>() {});
5556
var params = new LinkedHashMap<>(tree);
5657
params.put("changeRequestId", ChangeRequestId.generate());
@@ -59,6 +60,8 @@ public ResponseEntity<Map<String, Object>> setForms(@PathVariable(PROJECT_ID) Pr
5960

6061
} catch (JsonProcessingException e) {
6162
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, e.getMessage());
63+
} finally {
64+
CorrelationMDCUtil.clearCorrelationId();
6265
}
6366
}
6467
}

0 commit comments

Comments
 (0)