Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3BB911DD3 for ; Wed, 27 Aug 2014 07:02:58 +0000 (UTC) Received: (qmail 99740 invoked by uid 500); 27 Aug 2014 07:02:58 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 99708 invoked by uid 500); 27 Aug 2014 07:02:58 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 99696 invoked by uid 99); 27 Aug 2014 07:02:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2014 07:02:58 +0000 Date: Wed, 27 Aug 2014 07:02:58 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-7673) subscribeTopicName leaks out as a property and used as a destination for mqtt producer, causes infinite delivery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang resolved CAMEL-7673. --------------------------------- Resolution: Fixed Fix Version/s: 2.14.0 Introduced CamelMQTTSubscribeTopic for MQTTConsumer and CamelMQTTPublishTopic MQTTProducer in camel master branch. > subscribeTopicName leaks out as a property and used as a destination for mqtt producer, causes infinite delivery > ---------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-7673 > URL: https://issues.apache.org/jira/browse/CAMEL-7673 > Project: Camel > Issue Type: Bug > Components: camel-mqtt > Affects Versions: 2.12.2, 2.14.0 > Reporter: Tomohisa Igarashi > Assignee: Willem Jiang > Fix For: 2.14.0 > > > 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: > {code} > from("mqtt:input?subscribeTopicName=topicIn") > .to("mqtt:output?publishTopicName=topicOut"); > {code} > 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. -- This message was sent by Atlassian JIRA (v6.2#6252)