You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2012/11/08 18:14:13 UTC

[jira] [Resolved] (CXF-4618) DataSourceProvider is not closing inputstream acquired from DataSource

     [ https://issues.apache.org/jira/browse/CXF-4618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-4618.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.1
                   2.6.4
                   2.5.7
         Assignee: Daniel Kulp
    
> DataSourceProvider is not closing inputstream acquired from DataSource
> ----------------------------------------------------------------------
>
>                 Key: CXF-4618
>                 URL: https://issues.apache.org/jira/browse/CXF-4618
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.0
>         Environment: Windows
>            Reporter: Steve Hodecker
>            Assignee: Daniel Kulp
>             Fix For: 2.5.7, 2.6.4, 2.7.1
>
>         Attachments: DataSourceProvider.java.patch
>
>
> When a REST method returns a DataSource, e.g.:
> @GET
> public DataSource getFile() { ...
> ...the CXF JAX-RS framework obtains an inputstream from the datasource but does  close the stream after use.  This is noticeable on windows environments for the case of a provided FileDataSource, since the underlying file cannot be deleted while this file handle remains open.
> I've tracked down the problem to the writeTo() method of org.apache.cxf.jaxrs.provider.DataSourceProvider and will attach a proposed patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira