From 907ad09d5bf510ec88837c8ad9dc073bc99cc434 Mon Sep 17 00:00:00 2001 From: James Ward Date: Wed, 8 Apr 2026 14:26:51 -0400 Subject: [PATCH] chore(api): drop unused book download proxy (#428) the book download proxy code path should never be called. this is because the book download URL received as part of the kobo proxy points at the Rakuten Kobo CDN rather than at grimmory. further, even if this code could download the file from the CDN (it doesn't), it would be pointless as we don't return it. instead of fixing the return this drops the proxy from that code path --- .../main/java/org/booklore/controller/KoboController.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/booklore-api/src/main/java/org/booklore/controller/KoboController.java b/booklore-api/src/main/java/org/booklore/controller/KoboController.java index 57616f08d..3e4f58823 100644 --- a/booklore-api/src/main/java/org/booklore/controller/KoboController.java +++ b/booklore-api/src/main/java/org/booklore/controller/KoboController.java @@ -176,11 +176,9 @@ public class KoboController { public void downloadBook(@Parameter(description = "Book ID") @PathVariable String bookId, HttpServletResponse response) { if (StringUtils.isNumeric(bookId)) { bookDownloadService.downloadKoboBook(Long.parseLong(bookId), response); - } else if (isForwardingToKoboStore()) { - koboServerProxy.proxyCurrentRequest(null, false); - } else { - throw ApiError.GENERIC_NOT_FOUND.createException("Not Found"); } + + throw ApiError.GENERIC_NOT_FOUND.createException("Not Found"); } @Operation(summary = "Delete book from Kobo library", description = "Delete a book from the user's Kobo library.")