Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7865

amqp$header is splitted in the wrong way for "," and "}"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.12.0
    • 1.16.0
    • Extensions
    • rabbbitmq 3.7.7
      nifi 1.12.0
    • Patch, Important

    Description

      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 ",",

      Attachments

        Issue Links

          Activity

            People

              sedad Seda Dogan
              tkellermann Tobias Kellermann
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 7h 50m
                  7h 50m