티스토리 뷰

728x90

multipart request를 다루면서 다양한 processor들을 거친 후 response를 내려줄 때 계속 업로드한 original file이 함께 응답되는 현상이 발생하였다.

invokeHTTP의 경우 content를 무시하는 property로 관리가 되지만, 여러 processor에 대응가능한 방법이 필요했다.

그래서 찾아낸 processor.

ModifyBytes

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.16.3/org.apache.nifi.processors.standard.ModifyBytes/

 

ModifyBytes

Start Offset0 BNumber of bytes removed at the beginning of the file.Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)

nifi.apache.org

Remove All Content : Remove all content from the FlowFile superseding Start Offset and End Offset properties.

 

ModifyBytes processor를 추가하고, Remove All Content property를 true로 설정하여 해결하였다.

 

728x90
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31