leven.chen created SHIRO-799:
--------------------------------

             Summary: When ThreadContext works with ThreadPool bring security 
issues
                 Key: SHIRO-799
                 URL: https://issues.apache.org/jira/browse/SHIRO-799
             Project: Shiro
          Issue Type: Bug
          Components: Authorization (access control) 
    Affects Versions: 1.7.0, 1.4.0
            Reporter: leven.chen


Beacause ThreadContext use InheritableThreadLocalMap  , but when it work with 
ThreadPool , it  bring security problem. Although, we can use  
SubjectAwareExecutor or  SubjectAwareExecutorService to fix this problem. but 
not elegant . Maybe use ThreadLocal or 
*[Transmittable-thread-local|https://github.com/alibaba/transmittable-thread-local]*
  better then InheritableThreadLocal



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to