Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7673

subscribeTopicName leaks out as a property and used as a destination for mqtt producer, causes infinite delivery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.2, 2.14.0
    • 2.14.0
    • camel-mqtt
    • None
    • Unknown

    Description

      MQTT consumer sets its subscribeTopicName as a exchange property, and it will be used by MQTT producer as a destination if it exists in the route.

      If you have a following route:

      from("mqtt:input?subscribeTopicName=topicIn")
              .to("mqtt:output?publishTopicName=topicOut");
      

      MQTT consumer put "topicIn" to "MQTTTopicPropertyName" exchange property, and MQTT producer uses this property to determine a destination topic to publish. Then MQTT producer ignores publishTopicName and send a message to "topicIn", so MQTT consumer consumes the message again, eventually it causes infinite delivery. We need to stop this property to be used as a destination for producer.

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              igarashitm Tomohisa Igarashi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: