Repository navigation
FINERACT-2320: Fix 403 error by returning false when Loan COB job is disabled - #5291
Merged
adamsaghy merged 1 commit intoJan 15, 2026
Merged
Conversation
Contributor
|
@Shivd131 Run './gradlew :fineract-provider:spotlessApply' to fix these violations. |
IOhacker
approved these changes
Jan 6, 2026
Contributor
There was a problem hiding this comment.
Please rebase, this fix is already in place
Contributor
Author
|
@IOhacker Thanks for the review. I have:
The build should be green now, but kindly let me know if there are further fixes required! |
Contributor
Author
|
@IOhacker I have removed the comment, thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes FINERACT-2320.
The Issue:
When
fineract.job.loan-cob-enabledis set tofalse, the API endpoint/loans/is-catch-up-runningthrows aJobIsNotFoundOrNotEnabledException. This results in a403 Forbidden(or sometimes400 Bad Request) response, causing the "Manage Jobs" UI to display an error message unnecessarily.The Fix:
Modified
LoanCOBCatchUpApiResource.javato handle the empty ServiceOptionalgracefully. Instead of throwing an exception, the API now correctly returns200 OKwith a payload indicating the job is not running:{"catchUpRunning": false}.Verification:
export FINERACT_JOB_LOAN_COB_ENABLED=false.400/403.200 OK.Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!