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

NPE UserManagerImpl.searchUsers when user directory is in MongoDB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10, 9.2
    • Fix Version/s: 8.10-HF13
    • Component/s: Core MongoDB
    • Release Notes Summary:
      Fix NPE when searching for users in MongoDB directory
    • Backlog priority:
      600
    • Sprint:
      nxFG 9.3.3
    • Story Points:
      2

      Description

      Quick repro:

      • install Nuxeo 8.10, nuxeo-jsf-ui, nuxeo-mongodb-ext, nuxeo-8.10-HF11
      • nuxeo.templates=default,mongodb,mongodb-directory
      • create a new user in Admin UI, Set user password: No, click Create
      java.lang.NullPointerException
      	at org.nuxeo.directory.mongodb.MongoDBSession.buildQuery(MongoDBSession.java:384)
      	at org.nuxeo.directory.mongodb.MongoDBSession.query(MongoDBSession.java:328)
      	at org.nuxeo.directory.mongodb.MongoDBSession.query(MongoDBSession.java:321)
      	at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.searchUsers(UserManagerImpl.java:1090)
      	at org.nuxeo.ecm.platform.usermanager.UserManagerImpl.searchUsers(UserManagerImpl.java:949)
      	at org.nuxeo.ecm.user.invite.UserInvitationComponent.isEmailExist(UserInvitationComponent.java:580)
      	at org.nuxeo.ecm.user.invite.UserInvitationComponent.submitRegistrationRequest(UserInvitationComponent.java:596)
      	at org.nuxeo.ecm.user.invite.UserInvitationComponent.submitRegistrationRequest(UserInvitationComponent.java:548)
      	at org.nuxeo.ecm.webapp.security.UserManagementActions.createUser(UserManagementActions.java:242)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h