p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
Other
362 stars 65 forks source link

Organization search does not recognize the organization name first character #109

Closed AustinOyugi closed 10 months ago

AustinOyugi commented 11 months ago

When calling the

/orgs?q=name:{orgname}

being handled by listOrgs under OrganizationsResource

The criteria builder uses

builder.like(root.get("name"), "%" + value.toLowerCase() + "%")

Which takes in a lowercase value without converting the root.get("name") to a builder.lower expression

AustinOyugi commented 11 months ago

Requesting to be assigned the issue...

AustinOyugi commented 11 months ago

review the pull request: https://github.com/p2-inc/keycloak-orgs/pull/110

xgp commented 10 months ago

Fixed in #116

Thanks to @AustinOyugi for the original issue and PR.