FINERACT-2529: pass externalId instead of null resolvedClientId in Cl…#5632
Open
mansi75 wants to merge 2 commits intoapache:developfrom
Open
FINERACT-2529: pass externalId instead of null resolvedClientId in Cl…#5632mansi75 wants to merge 2 commits intoapache:developfrom
mansi75 wants to merge 2 commits intoapache:developfrom
Conversation
…ientNotFoundException
Contributor
|
Author
|
@adamsaghy I have fixed the above BatchApi failed check. The only check now failing is Fineract PR One Commit Per User Check. I have done the fix for that in the below PR |
Contributor
|
@mansi75 I a not sure why but for all of your commits it says "unverified"... :/ |
Author
|
@adamsaghy It was showing 'unverified' because I didn't add my GPG key on github. I have added the GPG key. It is verified now. Sorry for the confusion |
Contributor
…ollback assertion for externalId lookup
3e9b174 to
eb9542e
Compare
Author
|
@adamsaghy Got your point. I have squashed the last 6 commits. May you please kindly check if it looks fine |
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.
Problem
In
ClientApiResource.java, thegetResolvedClientIdmethod throws aClientNotFoundExceptionusingresolvedClientIdvariable. However, this block of code only executes whenresolvedClientIdis null, resulting in an unhelpful error message: "Client with identifier null does not exist."Fix
Passed the
externalIdstring to the exception instead ofresolvedClientId, so the error message accurately reflects which external identifier failed to resolve.