You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Rob Davies (JIRA)" <ji...@apache.org> on 2012/07/13 11:43:35 UTC
[jira] [Commented] (CAMEL-5411) MQTT Endpoint does not correctly
return the MQTT-Payload
[ https://issues.apache.org/jira/browse/CAMEL-5411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413611#comment-13413611 ]
Rob Davies commented on CAMEL-5411:
-----------------------------------
Added fix in Subversion: Committed revision 1361126. There's still some weirdness (timing issue) with publishing, which should be addressed in next release of ActiveMQ
> MQTT Endpoint does not correctly return the MQTT-Payload
> --------------------------------------------------------
>
> Key: CAMEL-5411
> URL: https://issues.apache.org/jira/browse/CAMEL-5411
> Project: Camel
> Issue Type: Bug
> Components: camel-mqtt
> Affects Versions: 2.10.0
> Environment: Linux 64bit, JDK 1.6, Mosquitto MQTT Broker
> Reporter: Ralf Kornberger
> Assignee: Rob Davies
> Fix For: 2.10.1, 2.11
>
> Attachments: MQTTEndpoint.java.patch
>
>
> MQTT Endpoint does not correctly return the MQTT-Payload. It returns the whole MQTT Message (header + payload).
> The bug is in line 89 of MQTTEndpoint.java (version 2.11, but also in 2.10)
> exchange.getIn().setBody(body.getData());
> must become
> exchange.getIn().setBody(body.toByteArray());
> because getData() ignores the offset (to skip the MQTT header) set in the body byte array.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira