Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-799

When ThreadContext works with ThreadPool bring security issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0, 1.7.0
    • None
    • None

    Description

      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  better then InheritableThreadLocal

      Attachments

        Activity

          People

            Unassigned Unassigned
            Leven leven.chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: