ThreadLocal variables may not be cleared in case of exception
-------------------------------------------------------------
Key: CXF-2622
URL: https://issues.apache.org/jira/browse/CXF-2622
Project: CXF
Issue Type: Bug
Components: JAX-RS
Affects Versions: 2.2.5
Reporter: Cyrille Le Clerc
Assignee: Cyrille Le Clerc
@Context ThreadLocal variables ( UriInfo, Request, HttpHeaders and
SecurityContext) are not cleared on a RequestHandler or on the Resource Object
if the JAXRSOutInterceptor.handleMessage() is not called.
This occurs if :
* an Error is throwned during the invocation of the Resource Object
* a Throwable (Exception or Error) is throwned during the invocation of
RequestHandler.handleRequest()
* an exception occurs invoking the various interceptors that are parts of the
invocation chain
* the out interceptor chain is aborted before reaching the JAXRSOutInterceptor
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.