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

When ThreadContext works with ThreadPool bring security issues

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.4.0, 1.7.0
    • Fix Version/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated: