GroupManager API cache is not invalidated

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.2.2
    • Component/s: Java API
    • 7.02
    • 3
    • Severity 3 - Minor
    • 2

      When checking groups with the GroupManager method multiple times in the same request, while the change is reflected towards the database, the cache is invalidated still.

      In such case, the caches should be invalidated when the method is used to edit user groups.

      Steps to reproduce:

      • add user Charlie to group one
      • check if Charlie is in group one using method com.atlassian.jira.security.groups.GroupManager#isUserInGroup
      • remove Charlie from group one
      • again check if Charlie is in group one using the same method

      Expected result:

      Charlie is not marked as a user of group one

      Actual result:

      Charlie is marked as a user of one

      Root cause:

      RequestCachingGroupManager does not invalidate caches on removal user from group.

            Assignee:
            Unassigned
            Reporter:
            Julian (Inactive)
            Votes:
            15 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated: