Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7167

IdentifyMimeType TikaInputStream not closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.11.1
    • 1.13.0, 1.12.1
    • Extensions
    • None

    Description

      On line 216 of the IdentifyMineType processor a TikaInputStream is opened but never closed. 

       

      From the looks of it, this stream should be closed with the close() method, or use try-with-resources.

      https://tika.apache.org/1.8/api/org/apache/tika/io/TikaInputStream.html#get(java.io.InputStream,%20org.apache.tika.io.TemporaryResources)

      Attachments

        1. image-2020-02-18-15-53-10-699.png
          33 kB
          Richie Howell

        Issue Links

          Activity

            People

              ctidd Cameron Tidd
              rhowell Richie Howell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m