airajena opened a new pull request, #5283: URL: https://github.com/apache/fineract/pull/5283
## Description Fixes the error "Job LOAN_COB is not found or it is disabled" that appears when navigating to Manage Jobs with LOAN_COB disabled. ## Root Cause When `fineract.job.loan-cob-enabled=false`, the `/api/v1/loans/is-catch-up-running` endpoint throws `JobIsNotFoundOrNotEnabledException`, which maps to HTTP 403 Forbidden. ## Fix Changed the `isCatchUpRunning()` method to return a default `IsCatchUpRunningDTO(false, null)` when the service is not available, instead of throwing an exception. **Before:** ```java .orElseThrow(() -> new JobIsNotFoundOrNotEnabledException(JobName.LOAN_COB.name())); ``` **After:** ```java .orElse(new IsCatchUpRunningDTO(false, null)); ``` ## Related Issue Fixes FINERACT-2320 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
