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

Temporary files are not deleted

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.1.2
    • Fix Version/s: 2.1.2, 2.0.9
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Linux, FreeBSD

      Description

      I have endpoint declared in Spring as follows:

      <jaxws:endpoint id="importService"
      implementor="my.ImportServiceImpl"
      address="/importService">
      <jaxws:properties>
      <entry key="mtom-enabled" value="true" />
      </jaxws:properties>
      </jaxws:endpoint>

      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.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              rostrzycki R.O.

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment