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

Pierre Villard commented on NIFI-8233:
--------------------------------------

I may have misunderstood. When using PostHTTP (with send as FF set to true) to 
send data to ListenHTTP, the payload and the attributes of the flow file will 
be preserved. And it works as expected since the payload and the flow file 
attributes are packaged together in the HTTP payload using FF format. So the 
ListenHTTP processors works as expected. If once you have received data (flow 
files in this case) via ListenHTTP you want to filter out attributes, why not 
use UpdateAttribute after the processor to removed unwanted attributes?

> ListenHTTP - add ability to filter out incoming flowfile attributes
> -------------------------------------------------------------------
>
>                 Key: NIFI-8233
>                 URL: https://issues.apache.org/jira/browse/NIFI-8233
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Nissim Shiman
>            Assignee: Nissim Shiman
>            Priority: Major
>
> Currently ListenHTTP handles incoming attributes with the property:
> "HTTP Headers to receive as Attributes (Regex)"
> This works except for the case where the data is from PostHTTP and was sent 
> as a flowfile.
> In this scenerio the flowfile attributes are not sent as headers, rather the 
> flowfile contents and attributes are packaged together and sent to ListenHTTP 
> and there is no option for the ListenHTTP processor to do any attribute 
> filtering.
> The property:
> "Flowfile attributes to be filtered (Regex)" 
> will be added to handle this case as part of this ticket.



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

Reply via email to