[
https://issues.apache.org/jira/browse/MINIFICPP-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marton Szasz reassigned MINIFICPP-1828:
---------------------------------------
Assignee: Marton Szasz
> InvokeHTTP Attributes to Send empty value means "send all", but it should
> mean "send none" according to docs
> ------------------------------------------------------------------------------------------------------------
>
> Key: MINIFICPP-1828
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1828
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Marton Szasz
> Assignee: Marton Szasz
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> InvokeHTTP docs say that a default / empty "Attributes to Send" means no
> attributes are attempted to be sent as HTTP headers. But InvokeHTTP uses
> HTTPClient::matches which in turn uses regex_search internally, instead of
> regex_match. regex_search is subsequence match, but we need full sequence
> match.
> From
> [PROCESSORS.md|https://github.com/apache/nifi-minifi-cpp/blob/main/PROCESSORS.md#invokehttp]:
> Attributes to Send Regular expression that defines which attributes to
> send as HTTP headers in the request. If not defined, no attributes are sent
> as headers.
> A workaround could be adding "^$" around the text. A proper solution is to
> change to use regex_match.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)