Clement created NIFI-7845:
-----------------------------
Summary: Insufficient handling on malformed/empty strings
Key: NIFI-7845
URL: https://issues.apache.org/jira/browse/NIFI-7845
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Affects Versions: 1.11.4
Reporter: Clement
At the moment, the `validateAMQPHeaderProperty()` does not handle
`amqpPropValues` that are appended and prepended by curly braces, like `{a=b}`.
Nor does the function deal with an empty `amqpPropValues` properly.
This is particularly a problem because if the AMQP queue you're reading from
with the `ConsumeAMQP.java` processor has a message with an *empty* header,
then `ConsumeAMQP.java` creates a flowfile-attribute `ampq$header` of the form
`{}` - which causes `validateAMQPHeaderProperty()` to pollute the NiFi error
box.
According to [1] the AMQP header attribute is optional anyway, so we need to
handle blank entries.
[1]: https://www.rabbitmq.com/tutorials/amqp-concepts.html#messages
--
This message was sent by Atlassian Jira
(v8.3.4#803005)