Skip to content

Conversation

@airajena
Copy link
Contributor

@airajena airajena commented Jan 3, 2026

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:

.orElseThrow(() -> new JobIsNotFoundOrNotEnabledException(JobName.LOAN_COB.name()));

After:

.orElse(new IsCatchUpRunningDTO(false, null));

Related Issue

Fixes FINERACT-2320

@adamsaghy
Copy link
Contributor

    Test testPostInterestNotZero() FAILED (1.9s)
  
    java.lang.AssertionError: 1 expectation failed.
    Expected status code <200> but was <400>.
        at org.apache.fineract.integrationtests.SavingsInterestPostingTest.lambda$testPostInterestNotZero$4(SavingsInterestPostingTest.java:346)

Please run:

./gradlew spotlessApply spotbugsMain spotbugsTest checkstyleMain checkstyleTest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants