[ 
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/%3cd9d39d1e52c5514c94de9b5e928c72db032bc...@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.

Reply via email to