Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-468

OdfPackage file insertion got unclosed FileInputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • odfdom
    • odfdom-java-0.8.11-incubating

    Description

      Any inserted file still got a handle after using OdfPackage.insert(URI sourceURI, String internalPath, String mediaType), as opened InputStream there is never closed (only an explicit System.gc() call could free the file). This can also lead to memory leakage of course.

      I pushed a fix (closing the instancied InputStream) as pull request here: https://github.com/apache/odftoolkit/pull/2

      Attachments

        Activity

          People

            Unassigned Unassigned
            mstempell Mathieu Stempell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: