-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8.0-HF37, 6.0-HF25, 7.10
-
Fix Version/s: 5.8.0-HF38, 6.0-HF26, 7.10-HF03, 8.1
-
Component/s: Directory
Since NXP-18078, the attributes are not fetched for all the LDAP queries. But in some cases, it is still needed. For instance, the attributes needs to be read when fetching the dynamic members of a group.
Otherwise the following exception is raised:
org.nuxeo.ecm.directory.DirectoryException: org.nuxeo.ecm.directory.DirectoryException: error during reference search for b.ilponse at org.nuxeo.ecm.directory.ldap.LDAPSession.ldapResultToDocumentModel(LDAPSession.java:975) at org.nuxeo.ecm.directory.ldap.LDAPSession.getEntryFromSource(LDAPSession.java:274) at org.nuxeo.ecm.directory.DirectoryCache.getEntry(DirectoryCache.java:134) at org.nuxeo.ecm.directory.ldap.LDAPSession.getEntry(LDAPSession.java:261) at org.nuxeo.ecm.directory.multi.MultiDirectorySession.getEntry(MultiDirectorySession.java:411) at org.nuxeo.ecm.directory.multi.MultiDirectorySession.getEntry(MultiDirectorySession.java:395) at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.getUserModel(UserManagerImpl.java:1315) at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.getPrincipal(UserManagerImpl.java:1352) at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.getPrincipal(UserManagerImpl.java:571) at org.nuxeo.ecm.platform.login.NuxeoLoginModule.createIdentity(NuxeoLoginModule.java:298) at org.nuxeo.ecm.platform.login.NuxeoLoginModule.validateUserIdentity(NuxeoLoginModule.java:358) at org.nuxeo.ecm.platform.login.NuxeoLoginModule.getPrincipal(NuxeoLoginModule.java:210) at org.nuxeo.ecm.platform.login.NuxeoLoginModule.login(NuxeoLoginModule.java:261) at org.nuxeo.runtime.api.LoginModuleWrapper.login(LoginModuleWrapper.java:77) ... Caused by: org.nuxeo.ecm.directory.DirectoryException: error during reference search for b.ilponse at org.nuxeo.ecm.directory.ldap.LDAPReference.getSourceIdsForTarget(LDAPReference.java:676) at org.nuxeo.ecm.directory.multi.MultiReference$1.collect(MultiReference.java:95) at org.nuxeo.ecm.directory.multi.MultiReference.doCollect(MultiReference.java:77) at org.nuxeo.ecm.directory.multi.MultiReference.getSourceIdsForTarget(MultiReference.java:90) at org.nuxeo.ecm.directory.InverseReference.getTargetIdsForSource(InverseReference.java:146) at org.nuxeo.ecm.directory.ldap.LDAPSession.ldapResultToDocumentModel(LDAPSession.java:973) ... 62 more Caused by: java.lang.NullPointerException at org.nuxeo.ecm.directory.ldap.LDAPReference.getSourceIdsForTarget(LDAPReference.java:633) ... 67 more