Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2622

ThreadLocal variables may not be cleared in case of exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.5
    • 2.2.6, 2.3
    • JAX-RS
    • None

    Description

      @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

      Attachments

        Activity

          People

            cleclerc Cyrille Le Clerc
            cleclerc Cyrille Le Clerc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: