Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18729

Fix attributes fetching for LDAP references

    XMLWordPrintable

    Details

      Description

      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
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: