steinarb commented on issue #2083:
URL: https://github.com/apache/shiro/issues/2083#issuecomment-2817209080

   > > A good practice when switching the TCCL, is to:
   > > 
   > > 1. store the current context in a local var
   > > 2. setting the new context
   > > 3. doing stuff
   > > 4. setting back the original context
   > 
   > Check! Not much experience with TCCL [#1500 
(comment)](https://github.com/apache/shiro/issues/1500#issuecomment-2156368988) 
was the first time I encountered the concept.
   
   FYI I have added save/restore of the original thread context classloader to 
my own thread context classloader workaround: 
https://github.com/steinarb/authservice/blob/1af6bd8e854e1a439695a861a1149b9fcdff5ea6/authservice/authservice.web.security.shirofilter/src/main/java/no/priv/bang/authservice/web/security/shirofilter/AuthserviceShiroFilterBase.java#L47


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@shiro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@shiro.apache.org
For additional commands, e-mail: issues-h...@shiro.apache.org

Reply via email to