nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richie Howell (Jira)" <j...@apache.org>
Subject [jira] [Updated] (NIFI-7167) IdentifyMimeType TikaInputStream not closed
Date Tue, 18 Feb 2020 21:01:00 GMT

     [ https://issues.apache.org/jira/browse/NIFI-7167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richie Howell updated NIFI-7167:
--------------------------------
    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)]

!image-2020-02-18-15-53-10-699.png!

  was:
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.

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

!image-2020-02-18-15-53-10-699.png!


> IdentifyMimeType TikaInputStream not closed
> -------------------------------------------
>
>                 Key: NIFI-7167
>                 URL: https://issues.apache.org/jira/browse/NIFI-7167
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.11.1
>            Reporter: Richie Howell
>            Priority: Minor
>         Attachments: image-2020-02-18-15-53-10-699.png
>
>
> 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)]
> !image-2020-02-18-15-53-10-699.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message