fix medium severity security vulnerabilities (#3061)

This commit is contained in:
ACX
2026-02-26 23:01:05 -07:00
committed by GitHub
parent 46d744318d
commit d2075fd371
15 changed files with 55 additions and 22 deletions
@@ -376,6 +376,7 @@ class BookServiceTest {
doNothing().when(bookRepository).deleteAll(anyList());
when(bookQueryService.findAllWithMetadataByIds(Set.of(11L))).thenReturn(List.of(entity));
when(authenticationService.getAuthenticatedUser()).thenReturn(testUser);
BookDeletionResponse response = bookService.deleteBooks(Set.of(11L)).getBody();
@@ -403,6 +404,7 @@ class BookServiceTest {
entity.setBookFiles(List.of(primaryFile));
when(bookQueryService.findAllWithMetadataByIds(Set.of(13L))).thenReturn(List.of(entity));
when(authenticationService.getAuthenticatedUser()).thenReturn(testUser);
doNothing().when(bookRepository).deleteAll(anyList());
BookDeletionResponse response = bookService.deleteBooks(Set.of(13L)).getBody();