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

Fix NPE when getting a group in LDAP configuration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0-HF09, 7.3
    • Component/s: Directory

      Description

      When a LDAP configuration is set, trying to view a group could fail with the following error :

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.getGroupsInGroup(UserManagerImpl.java:1562)
      	at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.getGroupsInGroup(UserManagerImpl.java:664)
      	at org.nuxeo.ecm.webapp.security.AbstractUserGroupManagement.getAllSubGroups(AbstractUserGroupManagement.java:180)
      	at org.nuxeo.ecm.webapp.security.AbstractUserGroupManagement.getAllSubGroups(AbstractUserGroupManagement.java:166)
      	at org.nuxeo.ecm.webapp.security.AbstractUserGroupManagement.getAllAdminGroups(AbstractUserGroupManagement.java:152)
      	at org.nuxeo.ecm.webapp.security.GroupManagementActions.getAllowDeleteGroup(GroupManagementActions.java:194)
      

      This is because the default administrator group cannot be retrieved from the current group directory.

      A workaround is to disable the default administrator group, administrators

                <disableDefaultAdministratorsGroup>
                  true
                </disableDefaultAdministratorsGroup>
      

      But the problem could happen because of other groups.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: