portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ethan Adams (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-589) PermissionManagerImpl use of ThreadLocal for caching causes inconsistent results
Date Thu, 28 Sep 2006 18:48:51 GMT
    [ http://issues.apache.org/jira/browse/JS2-589?page=comments#action_12438525 ] 
Ethan Adams commented on JS2-589:

I think clearing the ThreadLocal value through the pipeline is a good option if you only want
per request caching.  On the other hand, it seems this component and many others (page manager,
portlet entity access, etc. ) would benefit from a consistent cache model through some kind
of caching service.  You could use an existing cache project for the backing to a generic
cache service.  

Just a thought.

> PermissionManagerImpl use of ThreadLocal for caching causes inconsistent results
> --------------------------------------------------------------------------------
>                 Key: JS2-589
>                 URL: http://issues.apache.org/jira/browse/JS2-589
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 2.1-dev
>         Environment: java 1.5, oracle, any OS
>            Reporter: Ethan Adams
>            Priority: Critical
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message