HI,

Use following CURL commands with "userName" attribute in upper and lower
case.

curl -v -k --user PRIMARY/admin:admin
https://localhost:9292/scim/v2/Users?filter=USERNAME+eq+user1

curl -v -k --user PRIMARY/admin:admin
https://localhost:9292/scim/v2/Users?filter=username+eq+user1

Gives following response.

{"schemas":"urn:ietf:params:scim:api:messages:2.0:Error","scimType":"invalidValue","detail":"Not
a valid attribute name/uri","status":"400"}

As per the SCIM2 specification(Refer
https://tools.ietf.org/html/rfc7644#section-3.4.2.2)

Attribute names and attribute operators used in filters are case
insensitive.  For example, the following two expressions will evaluate
to the same logical value:
filter=userName Eq "john"
filter=Username eq "john"

Currently, support for case-insensitive attribute operators but not for
attribute names.


Fixed [1] with PR [2].


[1] https://wso2.org/jira/browse/IDENTITY-5774

[2] https://github.com/wso2/charon/pull/82



Best Regards

Isuranga Perera
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to