Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
displayName attribute of Role Resouce has caseExact = false characteristic.
Thus, when finding matching role resources based on displayname, the displayname comparison needs to be done in a case-insensitive manner.
When comparing attributes of type String, the case sensitivity for
String type attributes SHALL be determined by the attribute's
"caseExact" characteristic
caseExact attribute can be changed using the database collation properties as per the user's preference. Please try changing the property and monitor the behaviour.
Describe the issue:
displayName attribute of Role Resouce has caseExact = false characteristic. Thus, when finding matching role resources based on displayname, the displayname comparison needs to be done in a case-insensitive manner.
https://datatracker.ietf.org/doc/html/rfc7644#page-22
How to reproduce:
GET request to search
POST request to search
This returns 0 results, but it should return the above role. If you change the filter as displayName co Dev, the above-created role will be returned.
Expected behavior: Currently supported filters for role endpoint are co, eq, sw, ew We can filter role by displayname with above filters and
Environment information (Please complete the following information; remove any unnecessary fields) :