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

CacheSizeExceededException attachment tempfile leak

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 2.7.12, 3.0.1
    • Component/s: Bus, Core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If I set the attachment-max-size option for my endpoint, a CacheSizeExceededException is thrown if the attachment size exceeds the configured value.
      In this case the attachment tempfile is not deleted by the CXF runtime, when I close the AttachmentDataSource InputStream.

      Analyzing the issue I noticed that 2 tempfiles are created (I have only 1 attachment), 2 AttachmentDataSource's can be retreived, but closing both of them deletes only one of the tempfiles.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              zsolt.szloboda Zsolt Szloboda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: