Skip to content

Commit d0f5c41

Browse files
ryzhebokagitgoodjhe
authored andcommitted
Closes #2555 - Fix deleteClassification
1 parent 281989d commit d0f5c41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/taskana-core/src/main/java/pro/taskana/classification/internal/ClassificationServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public void deleteClassification(String classificationId)
154154
if (isReferentialIntegrityConstraintViolation(e)) {
155155
throw new ClassificationInUseException(classification, e);
156156
}
157+
throw e;
157158
}
158159
} finally {
159160
taskanaEngine.returnConnection();

rest/taskana-rest-spring/src/main/java/pro/taskana/classification/rest/ClassificationController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public ResponseEntity<ClassificationRepresentationModel> updateClassification(
334334
content = {@Content(schema = @Schema())})
335335
})
336336
@DeleteMapping(path = RestEndpoints.URL_CLASSIFICATIONS_ID)
337-
@Transactional(readOnly = true, rollbackFor = Exception.class)
337+
@Transactional(rollbackFor = Exception.class)
338338
public ResponseEntity<ClassificationRepresentationModel> deleteClassification(
339339
@PathVariable("classificationId") String classificationId)
340340
throws ClassificationNotFoundException, ClassificationInUseException, NotAuthorizedException {

0 commit comments

Comments
 (0)