Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33E7F17EA2 for ; Fri, 30 Jan 2015 11:25:34 +0000 (UTC) Received: (qmail 21196 invoked by uid 500); 30 Jan 2015 11:25:34 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 21149 invoked by uid 500); 30 Jan 2015 11:25: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 20924 invoked by uid 99); 30 Jan 2015 11:25:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2015 11:25:34 +0000 Date: Fri, 30 Jan 2015 11:25:34 +0000 (UTC) From: =?utf-8?Q?Papp_Istv=C3=A1n_P=C3=A9ter_=28JIRA=29?= To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-6228) Using XSLTFeature with large messages creates unremovable temporary files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6228?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Papp Istv=C3=A1n P=C3=A9ter updated CXF-6228: ----------------------------------- Attachment: bug6228reproduction.zip Small test project that can reproduce the issue > Using XSLTFeature with large messages creates unremovable temporary files > ------------------------------------------------------------------------- > > Key: CXF-6228 > URL: https://issues.apache.org/jira/browse/CXF-6228 > Project: CXF > Issue Type: Bug > Affects Versions: 3.0.3 > Reporter: Papp Istv=C3=A1n P=C3=A9ter > Priority: Minor > Attachments: bug6228reproduction.zip > > > Using the XSLT transformation feature causes the outgoing message to use = a CachedOutputStream object. If the size of the message is above the config= ured threshold, a temporary file will be created to store the message on th= e disk; however, this file is not deleted after the message is sent. > Based on info available on similar problems encountered with CachedOutput= Stream and attachments, I tried using an interceptor in the SETUP_ENDING ph= ase to close the stream manually - this, however, did not work because even= after closing the stream, the "streamList" variable was not empty, which r= esulted in the closing logic skipping file deletion in the "maybeDeleteTemp= File" method. Attempts to delete the file directly also fail for obvious re= asons. > Some (sometimes all, not sure what makes the difference) of the temporary= files are removed during a clean server shutdown, but since this is a rare= event in production environments, it does not really solve the problem. (A= ctually, the issue was discovered when the temp files filled the disk compl= etely on a production server.) > The only viable workaround I found so far was to set the CachedOutputStre= am threshold high enough to avoid caching the data to disk altogether. -- This message was sent by Atlassian JIRA (v6.3.4#6332)