[ 
https://issues.apache.org/jira/browse/NIFI-7845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard updated NIFI-7845:
---------------------------------
    Resolution: Feedback Received
        Status: Resolved  (was: Patch Available)

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> 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
>            Priority: Minor
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> 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.20.10#820010)

Reply via email to