Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-6741

IllegalArgumentException cannot get committers for a non-existent Fisheye user

    XMLWordPrintable

Details

    Description

      Problem:

      FishEye/Crucible fails to render list of users in case one user is defined in two user directories and has 'fisheye user' global permission set in one of them, while in another directory is marked as inactive and the second directory has higher priority.

       

      Steps to reproduce:

      • create a user in 'Internal' directory
      • by default this user will be granted 'fisheye user' and 'crucible user' global permissions
      • create the same user in external directory (JIRA), uncheck the 'active' checkbox
      • configure user directories: JIRA directory as first, internal directory as second
      • click 'synchronise' link
      • the "Users" list on administration page (/admin/userAdmin.do) shows this user
      • note: user has an empty avatar (grey icon), clicking on the user loads a page with "IllegalStateException user does not exist" error
      • an attempt to delete a user shows "success", but the user is still shown on the list
      • the global user list (/users) fails with the "cannot get committers for a non-existent Fisheye user" error:
          
      Caused by: java.lang.IllegalArgumentException: cannot get committers for a non-existent Fisheye user [jordi.nadal] at com.cenqua.fisheye.model.manager.CommitterUserMappingManagerImpl.getAllCommittersForUser(CommitterUserMappingManagerImpl.java:280) [fisheye.jar:?] ... at com.atlassian.fisheye.user.action.userlistgenerator.GlobalUserListGenerator.addCommitsToPeople(GlobalUserListGenerator.java:54) [fisheye.jar:?] at com.atlassian.fisheye.user.action.userlistgenerator.UserListGenerator.completeUserData(UserListGenerator.java:88) [fisheye.jar:?]
      

      Workaround:

      • swap the order of user directories - i.e. to have the internal first, JIRA as second
      • delete the user - it will be removed from the internal directory (alternatively - remove it from 'fisheye-user' and 'crucible-users' groups to revoke user's global permissions)
      • switch the order of directories back

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mparfianowicz Marek Parfianowicz
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: