cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Renner (JIRA)" <>
Subject [jira] Created: (CXF-2940) AttachmentOutInterceptor does not always close the input streams
Date Fri, 13 Aug 2010 08:28:16 GMT
AttachmentOutInterceptor does not always close the input streams

                 Key: CXF-2940
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.13, 2.1.10, 2.2.9, 2.2.8, 2.2.7, 2.2.6, 2.1.9, 2.2.5, 2.1.8, 2.2.4,
2.1.7, 2.2.3, 2.1.6, 2.0.12, 2.2.2, 2.2.1, 2.1.5, 2.2, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1
            Reporter: Martin Renner

Under some circumstances, AttachmentOutInterceptor does not close the input stream that it
uses to read the contents of an attachment and to stream it to the client. This can lead to
a resource leak, because those input streams often belong to server resources like database
results, files from the server's filesystem etc.

The stream gets closed, if an exception occurs _while_ streaming the content of one particular
input stream to the client. However, the streams are not closed, if
* an exception occurs on the outbound chain somewhere between the very first interceptor and
* there are several attachments, writing of one fails (maybe because the client closed the
connection) and there are some more attachments left. Then the streams of those outstanding
attachments won't get closed.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message