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

base64 attachment encoding does not close the InputSteam

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.14, 3.2.1
    • 3.2.2, 3.1.15
    • Core
    • None
    • Novice

    Description

      The AttachmentSerializer class gets in the writeAttachments() and InputStream from the DataHandler and calls the encodeBase64(..) method.
      However, it does not close the InputStream.

      Instead a try-with-resource approach should be used here

      Attachments

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              joijoe Joern Gebhardt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: