You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (Jira)" <ji...@apache.org> on 2020/09/24 11:34:00 UTC

[jira] [Updated] (NIFI-7845) Insufficient handling on malformed/empty strings

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

Pierre Villard updated NIFI-7845:
---------------------------------
    Status: Patch Available  (was: Open)

> 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: 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.3.4#803005)