Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-27178

ClassCastException thrown by UserManager.getAllGroups

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.0.1
    • 5.0
    • Java API

    Description

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.Set
       	at com.atlassian.jira.user.util.DefaultUserManager.getAllGroups(DefaultUserManager.java:255)
      
          @Override
          public Set<Group> getAllGroups()
          {
              return (Set<Group>) getGroups();
          }
      

      is incorrect. getGroups() return now ArrayList (when the conversion from what crowd returns is not needed)!
      The workaround requires changing the code to use getGroups() and recompile the plugin.

      Attachments

        Activity

          People

            mquail Matt Quail (Inactive)
            wseliga Wojtek Seliga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: