This is an automated email from the ASF dual-hosted git repository.

adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8f2dbe476c Fix(FINERACT-2320): Return false instead of 403 when Loan 
COB job is disabled
8f2dbe476c is described below

commit 8f2dbe476c0364927a350593e036d2bc5ec8fa30
Author: Shiv Deshpande <[email protected]>
AuthorDate: Sat Jan 3 12:09:31 2026 +0530

    Fix(FINERACT-2320): Return false instead of 403 when Loan COB job is 
disabled
---
 .../java/org/apache/fineract/cob/api/LoanCOBCatchUpApiResource.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/cob/api/LoanCOBCatchUpApiResource.java
 
b/fineract-provider/src/main/java/org/apache/fineract/cob/api/LoanCOBCatchUpApiResource.java
index 7a928ff209..53ecff7dd4 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/cob/api/LoanCOBCatchUpApiResource.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/cob/api/LoanCOBCatchUpApiResource.java
@@ -86,7 +86,6 @@ public class LoanCOBCatchUpApiResource {
     @Produces({ MediaType.APPLICATION_JSON })
     @Operation(summary = "Retrieves whether Loan COB catch up is running", 
description = "Retrieves whether Loan COB catch up is running, and the current 
execution date if it is running.")
     public IsCatchUpRunningDTO isCatchUpRunning() {
-        return 
loanCOBCatchUpServiceOp.map(LoanCOBCatchUpService::isCatchUpRunning)
-                .orElseThrow(() -> new 
JobIsNotFoundOrNotEnabledException(JobName.LOAN_COB.name()));
+        return 
loanCOBCatchUpServiceOp.map(LoanCOBCatchUpService::isCatchUpRunning).orElseGet(()
 -> new IsCatchUpRunningDTO(false, null));
     }
 }

Reply via email to