Claus Ibsen created CAMEL-27843:
-----------------------------------
Summary: camel-paho-mqtt5: willMqttProperties are never sent,
executorServiceTimeout has no effect
Key: CAMEL-27843
URL: https://issues.apache.org/jira/browse/CAMEL-27843
Project: Camel
Issue Type: Bug
Components: camel-paho-mqtt5
Reporter: Claus Ibsen
Fix For: 4.25.0
Found while improving the option descriptions of camel-paho-mqtt5 for
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31143).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. willMqttProperties are never sent
{{PahoMqtt5Endpoint.createMqttConnectionOptions()}} puts the properties on the
will MqttMessage, but Paho 1.2.5 builds the CONNECT packet from
conOptions.getWillMessageProperties() only, so Will Delay Interval, Message
Expiry and Content Type are dropped.
Proposed change: also call options.setWillMessageProperties(...) when set.
h4. 2. executorServiceTimeout has no effect
Paho 1.2.5 never reads MqttConnectionOptions.getExecutorServiceTimeout(), and
the MqttClient constructor Camel uses has no executor service.
Proposed change: deprecate the option.
_Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)