-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF08, 11.1, 2021.0
-
Component/s: Directory
Nuxeo should accept the _ in LDAP queries, whereas it's not currently permitted : https://github.com/nuxeo/nuxeo/blob/master/nuxeo-services/nuxeo-platform-directory/nuxeo-platform-directory-ldap/src/main/java/org/nuxeo/ecm/directory/ldap/LDAPFilterBuilder.java#L330
Currently it thows an exception
Caused by: org.nuxeo.ecm.core.query.QueryParseException: Cannot use _ wildcard in LIKE for LDAP directory at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walkLikeWildcard(LDAPFilterBuilder.java:331) at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walkLike(LDAPFilterBuilder.java:300) at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walkExpression(LDAPFilterBuilder.java:122) at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walkOperand(LDAPFilterBuilder.java:356) at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walkMulti(LDAPFilterBuilder.java:201) at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walkOrMultiExpression(LDAPFilterBuilder.java:187) at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walkExpression(LDAPFilterBuilder.java:115) at org.nuxeo.ecm.directory.ldap.LDAPFilterBuilder.walk(LDAPFilterBuilder.java:71) at org.nuxeo.ecm.directory.ldap.LDAPSession.queryIds(LDAPSession.java:613) at org.nuxeo.ecm.directory.multi.MultiDirectoryExpressionEvaluator.evaluate(MultiDirectoryExpressionEvaluator.java:251) at org.nuxeo.ecm.directory.multi.MultiDirectoryExpressionEvaluator.evaluate(MultiDirectoryExpressionEvaluator.java:215) at org.nuxeo.ecm.directory.multi.MultiDirectoryExpressionEvaluator.eval(MultiDirectoryExpressionEvaluator.java:104) at org.nuxeo.ecm.directory.multi.MultiDirectorySession.query(MultiDirectorySession.java:773) at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.searchGroups(UserManagerImpl.java:1192) at org.nuxeo.ecm.platform.computedgroups.UserManagerWithComputedGroups.searchGroups(UserManagerWithComputedGroups.java:210) at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.searchGroups(UserManagerImpl.java:1289) at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.searchGroups(UserManagerImpl.java:750) at org.nuxeo.ecm.platform.usermanager.providers.AbstractGroupsPageProvider.searchGroups(AbstractGroupsPageProvider.java:116)
LDAP module should be updated accordingly.