Jetspeed 2
  1. Jetspeed 2
  2. JS2-589

PermissionManagerImpl use of ThreadLocal for caching causes inconsistent results

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1-dev
    • Fix Version/s: 2.2.2
    • Component/s: Security
    • Labels:
      None
    • Environment:
      java 1.5, oracle, any OS

      Description

      PermissionManagerImpl uses ThreadLocal for permission caching. This means that once the permissions are loaded for one thread (ex. thread 1), they are there until someone changes the permissions using the PermissionManager (on that thread). If permissions are edited on another thread (thread 2), thread 1 never gets updated. So permissions are inconsistent until the portal is restarted.

        Activity

        Ate Douma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ate Douma made changes -
        Assignee Ate Douma [ adouma ]
        David Sean Taylor made changes -
        Fix Version/s 2.2.2 [ 12313846 ]
        Fix Version/s 2.2.1 [ 12313443 ]
        Ate Douma made changes -
        Field Original Value New Value
        Fix Version/s 2.2.1 [ 12313443 ]
        Ethan Adams created issue -

          People

          • Assignee:
            Ate Douma
            Reporter:
            Ethan Adams
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development