Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-225

InputStream not closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10, 1.11
    • 1.11
    • None
    • Patch

    Description

      After running static code analysis on common codecs we discovered that it leaks file descriptors. The relevant locations are:

      • DaitchMokotoffSoundex -> the static initializer on line 229
      • Rule -> the static initializer on line 212 and the parseRules() method on line 438.

      patch provided via github pull request.

      This issue is relevant for web app deployments on OSes (like windows) that lock the files if ther eare open streams to them, and will prevent application undeployment.

      Attachments

        Issue Links

          Activity

            People

              jochen@apache.org Jochen Wiedmann
              SvetlinZarev Svetlin Zarev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: