Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 76071 invoked from network); 12 Aug 2008 18:14:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Aug 2008 18:14:35 -0000 Received: (qmail 43900 invoked by uid 500); 12 Aug 2008 18:14:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 43880 invoked by uid 500); 12 Aug 2008 18:14:34 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 43869 invoked by uid 99); 12 Aug 2008 18:14:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2008 11:14:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Aug 2008 18:13:46 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 88F84234C1AC for ; Tue, 12 Aug 2008 11:13:44 -0700 (PDT) Message-ID: <1377974104.1218564824559.JavaMail.jira@brutus> Date: Tue, 12 Aug 2008 11:13:44 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-1743) Temporary files are not deleted In-Reply-To: <1377880972.1218467984314.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1743?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12621911#action_12621911 ] Daniel Kulp commented on CXF-1743: ---------------------------------- What's SUPPOSED to happen is when the input stream is closed, the file is deleted. This isn't actually working though. :-( I'm testing a fix now. > Temporary files are not deleted > ------------------------------- > > Key: CXF-1743 > URL: https://issues.apache.org/jira/browse/CXF-1743 > Project: CXF > Issue Type: Bug > Components: Core > Affects Versions: 2.1.1, 2.1.2 > Environment: Linux, FreeBSD > Reporter: R.O. > > I have endpoint declared in Spring as follows: > --- > implementor="my.ImportServiceImpl" > address="/importService"> > > > > > --- > During tests I discovered, that large attachments (>64k), which are saved in temporary files, are not removed after processing SOAP message. > I've analysed sources of org.apache.cxf.attachment.AttachmentDataSource and org.apache.cxf.io.CachedOutputStream and discovered that AttachmentDataSource does not allow to close cache. > The only solution is to add close() method to AttachmentDataSource and close cache manually. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.