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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.12.2, 2.14.0
    • Fix Version/s: 2.14.0
    • Component/s: camel-mqtt
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              njiang Willem Jiang
              Reporter:
              igarashitm Tomohisa Igarashi

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment