Samer-Melhem-FOO opened a new pull request, #6165:
URL: https://github.com/apache/fineract/pull/6165

   ## Summary
   - `GET /v2/clients/search` matched `accountNumber`, `displayName`, 
`externalId`, `mobileNo`, and identifier `documentKey` using case-sensitive 
`LIKE` predicates, so a search term differing only in letter case from the 
stored value would not match.
   - `SearchingClientRepositoryImpl.searchByText` now lower-cases the incoming 
search text and wraps each compared field with `CriteriaBuilder.lower(...)` 
(via `cb.function("LOWER", ...)` for the `externalId` path), making the match 
case-insensitive.
   
   ## Test plan
   - [x] `./gradlew :fineract-core:compileJava` — builds clean
   - [x] `./gradlew :fineract-core:compileTestJava 
:fineract-provider:compileTestJava` — builds clean
   - [ ] Manual verification: create a client with a mixed-case 
`displayName`/`accountNumber`, call `GET 
/v2/clients/search?searchText=<lowercase-substring>` and confirm the client is 
now returned
   
   https://issues.apache.org/jira/browse/FINERACT-2702


-- 
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]

Reply via email to