[ 
https://issues.apache.org/jira/browse/NIFI-11126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17683382#comment-17683382
 ] 

ASF subversion and git services commented on NIFI-11126:
--------------------------------------------------------

Commit 8bc7593d34a26801bd4957acaa0cc2633aa9c976 in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=8bc7593d34 ]

NIFI-11126 Delete MultiPart files in ListenHTTP after processing

Signed-off-by: Chris Sampson <[email protected]>

This closes #6915


> ListenHTTP doesn't clean temporary files from multipart
> -------------------------------------------------------
>
>                 Key: NIFI-11126
>                 URL: https://issues.apache.org/jira/browse/NIFI-11126
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 1.19.1
>            Reporter: Michael W Moser
>            Assignee: David Handermann
>            Priority: Minor
>             Fix For: 1.20.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> When a multipart/form-data POST is received by ListenHTTP and the content is 
> greater than the Multipart Read Buffer Size property, the content is written 
> to a file on disk in "java.io.tmpdir".  These files are never removed, even 
> after the JVM is shutdown.
> To duplicate:
>  * Configure a ListenHTTP processor with Multipart Read Buffer Size property 
> with a small value such as 1 KB.
>  * Configure an InvokeHTTP processor to POST files to ListenHTTP using 
> multipart/form-data (the Request Multipart Form-Data Name property)
>  * Configure a GenerateFlowFile processor to send a few files of size > 1 KB 
> to InvokeHTTP
> Observe the java.io.tmpdir (typically /tmp on Linux) has files named 
> MultiPart3098281529241123731, MultiPart8577800175462397766, etc



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to