You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Cyrille Le Clerc (JIRA)" <ji...@apache.org> on 2010/01/17 23:34:54 UTC
[jira] Created: (CXF-2622) ThreadLocal variables may not be cleared
in case of exception
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.
[jira] Resolved: (CXF-2622) ThreadLocal variables may not be
cleared in case of exception
Posted by "Cyrille Le Clerc (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cyrille Le Clerc resolved CXF-2622.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.3
2.2.6
As suggested by Sergey Beryozkin in "RE: Questions regarding JAX-RS exception handling" (1), thread local variables are cleared in JAXRSInInterceptor.handleFault().
(1) http://mail-archives.apache.org/mod_mbox/cxf-dev/201001.mbox/%3CD9D39D1E52C5514C94DE9B5E928C72DB032BC703@MAIL02.bedford.progress.com%3E
> 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
> Fix For: 2.2.6, 2.3
>
>
> @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.