By: Theodore Sands user 02 Mar 2017 at 3:22 p.m. CST

3 Responses
Theodore Sands gravatar
I just submitted another request ([Issue 3831](https://support.gluu.org/identity-management/3831/scim-user-extension-filter-doesnt-work/)) with a similar issue. This one does the search but also sends back a 400 error. It's a "attribute present" filter defined in the SCIM spec. Using SCIM endpoints, I can query on the existence of an attribute of the user:{server}/identity/seam/resource/restv1/scim/v2/Users/?filter=familyName%20pr. I get a 400 error with the message: ``` { "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "status": "400", "scimType": "invalidFilter", "detail": "Unexpected processing error; please check the input parameters" } ``` Log shows results are found: ``` 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] (BaseScimWebService) validateToken token = 3bf0db28-078b-4b42-872c-35ccde26b174 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] (BaseScimWebService) validateToken status = 200 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] (BaseScimWebService) validateToken entity = {"valid":true,"expires_in":22289356} 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] (BaseScimWebService) validateToken isValid = true 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] (BaseScimWebService) validateToken expires = 22289356 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] Searching users from LDAP 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] ---------- 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] ### RAW PARAMS ## 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] filter string = familyName pr 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] startIndex = 0 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] count = 100 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] sortBy = null 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] sortOrder = null 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] attributes = null 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.service.antlr.scimFilter.ScimFilterParserService] createFilter() 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.service.antlr.scimFilter.ScimFilterParserService] visitTree() 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.service.antlr.scimFilter.ScimFilterParserService] getParser() 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.service.antlr.scimFilter.MainScimFilterVisitor] visitScimFilter() 2017-03-02 21:08:15,726 INFO [oxtrust.service.antlr.scimFilter.visitor.UserFilterVisitor] UserFilterVisitor.visitATTR_PR() 2017-03-02 21:08:15,726 INFO [oxtrust.service.antlr.scimFilter.visitor.UserFilterVisitor] ##### ATTRNAME = familyName, ldapAttributeName = sn 2017-03-02 21:08:15,726 INFO [oxtrust.service.antlr.scimFilter.visitor.UserFilterVisitor] ##### expr = sn=* 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] ### CONVERTED PARAMS ## 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] parsed filter = (sn=*) 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] startIndex = 1 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] count = 100 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] sortBy = displayName 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] sortOrder = ascending 2017-03-02 21:08:15,726 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] attributes = null 2017-03-02 21:08:15,775 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] ### RESULTS INFO ## 2017-03-02 21:08:15,775 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] totalResults = 156 2017-03-02 21:08:15,775 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] itemsPerPage = 100 2017-03-02 21:08:15,775 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] startIndex = 1 2017-03-02 21:08:15,775 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] ---------- 2017-03-02 21:08:15,775 INFO [gluu.oxtrust.ws.rs.scim2.UserWebService] setting schema ``` The log otherwise doesn't show an exception.

By William Lowe user 14 Mar 2017 at 10:12 a.m. CDT

William Lowe gravatar
Hi Theodore, Can you try in the latest version of the Gluu Server (3.0.1) ? As Shekhar mentioned in ticket 3831, filters are working in the latest version. Thanks, Will

By Theodore Sands user 14 Mar 2017 at 10:17 a.m. CDT

Theodore Sands gravatar
I will eventually but we don't have that on our TODO list until later this year. When we do, I'll definitely test and let you know how well it is implemented.

By William Lowe user 14 Mar 2017 at 10:20 a.m. CDT

William Lowe gravatar
OK, thank you. I'll close this ticket out for now then.