Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2213

Problem adding group membership before directory sync

    XMLWordPrintable

Details

    Description

      Attempting to add a user to a group before the groups have been sync'ed from the remote directory results in the following stack trace:

      com.atlassian.crowd.exception.runtime.OperationFailedException: Group already exists
      at com.atlassian.crowd.embedded.core.CrowdAdminServiceImpl.addUserToGroup(CrowdAdminServiceImpl.java:396)
      at com.atlassian.jira.user.util.UserUtilImpl.doAddUserToGroup(UserUtilImpl.java:501)
      at com.atlassian.jira.user.util.UserUtilImpl.addUserToGroup(UserUtilImpl.java:479)
      at com.atlassian.jira.user.util.UserUtilImpl.addUserToGroups(UserUtilImpl.java:516)
      at com.atlassian.jira.bc.group.DefaultGroupService.addUsersToGroups(DefaultGroupService.java:331)
      at com.atlassian.jira.web.action.admin.user.EditUserGroups.doExecute(EditUserGroups.java:85)
      at webwork.action.ActionSupport.execute(ActionSupport.java:165)
      at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:58)
      at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139)
      at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:168)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      

      Steps to reproduce:

      • Create a read/write LDAP Directory in Jira.
      • Browse for a user that exists in LDAP (using the User Browser).
      • Select "Groups" link to edit groups
      • Select the "jira-users" from the list and click "Join"

      Expected:

      • User successfully added to "jira-users"

      Attachments

        Activity

          People

            Unassigned Unassigned
            4c7409f97ecf James Wong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 8h
                8h
                Logged:
                Time Spent - Not Specified
                Not Specified