https://issues.apache.org/bugzilla/show_bug.cgi?id=50459

           Summary: StandardContext.bindThread() and unbindThread() are
                    not symmetrical and not limited to current thread
           Product: Tomcat 7
           Version: 7.0.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: sylvain.laur...@gmail.com


As a side effect of my commit, I think I found a bug in
StandardContext.bindThread() and unbindThread() methods in both tomcat 6 and 7
:

- the methods should be symmetrical : unbindThread should restore the Thread
CCL after calling DirContextURLStreamHandler.unbind() and
ContextBindings.unbindThread()
- StandardContext.bindThread() should call
DirContextURLStreamHandler.bindThread() instead of
DirContextURLStreamHandler.bind()
- StandardContext.unbindThread() should call
DirContextURLStreamHandler.unbindThread() instead of
DirContextURLStreamHandler.unbind()

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to