Closed tharindu-b-hewage closed 4 years ago
Cannot be reproduced. Tried with the following sample.
curl --location --request GET 'https://localhost:9443/scim2/Users?filter=userName+sw+s+and+name.givenName+sw+a&attributes=userName' \
--header 'Authorization: Basic YWRtaW46YWRtaW4='
@somindatommy Please use the same environment configurations as mentioned in the description and check. You will not get the stack trace but should get the erroneous API response. This is a syntax error with MsSQL query as I observed.
@tharindu-bandara seems like the issue is there when using ew
and co
operations. Also, it's working when the filter attributes are username
.
Describe the issue: $subject. Debugging the code revealed that there is a syntax error while trying to execute https://github.com/wso2/carbon-kernel/blob/05acd1eed9fea71dc2943fa36eb90dd32b2ddc1f/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/UniqueIDJDBCUserStoreManager.java#L3256.
I was able to debug and manually print the following stacktrace.
How to reproduce:
Expected behavior: Filtering should be successful and the users should be returned.
Environment information (Please complete the following information; remove any unnecessary fields) :