Tobias Kellermann created NIFI-7865:
---------------------------------------

             Summary: amqp$header is splitted in the wrong way for "," and "}"
                 Key: NIFI-7865
                 URL: https://issues.apache.org/jira/browse/NIFI-7865
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.12.0
         Environment: rabbbitmq 3.7.7
nifi 1.12.0
            Reporter: Tobias Kellermann


I have connected the both processors ConsumeAMQP and PublishAMQP.
When I get a Message from the queue the following attribute
amqp$headers  value =  \{sender=erp-send, preprocessing=false, encoding=UTF-8, 
type=XML, objectid=(226,0,0)}
is set. I would like publish this message with the same Header but the values 
of the header in rabbitmq is
headers:        
encoding:       UTF-8
objectid:       (226
preprocessing:  false
type:   XML
{sender:        erp-send
but it should be
headers:        
encoding:       UTF-8
objectid:       (226,0,0)
preprocessing:  false
type:   XML
sender: erp-send
The problem seems to in the class org.apache.nifi.amqp.processors.PublishAMQP 
in the function private Map<String, Object> validateAMQPHeaderProperty(String 
amqpPropValue) because of the spit only with ",",



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

Reply via email to