From 7b2b2b527c66a8624aa701f6ab3395891cffe04b Mon Sep 17 00:00:00 2001 From: zmstone Date: Mon, 10 Jun 2024 10:48:04 +0200 Subject: [PATCH] docs: add changelog for pr #13216 --- changes/ce/fix-13216.en.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 changes/ce/fix-13216.en.md diff --git a/changes/ce/fix-13216.en.md b/changes/ce/fix-13216.en.md new file mode 100644 index 000000000..2fe85c6b2 --- /dev/null +++ b/changes/ce/fix-13216.en.md @@ -0,0 +1,10 @@ +Respcet `clientid_prefix` config for MQTT bridges. + +As of version 5.4.1, EMQX limits MQTT Client ID lengths to 23 bytes. +Previously, the system included the `clientid_prefix` in the hash calculation of the original, excessively long Client ID, thereby impacting the resulting shortened ID. + +Change Details: +- Without Prefix: Behavior remains unchanged; EMQX will hash the entire Client ID into a 23-byte space (when longer than 23 bytes). +- With Prefix: + - Prefix no more than 19 bytes: The prefix is preserved, and the remaining suffix is hashed into a 4-byte space. + - Prefix is 20 or more bytes: EMQX no longer attempts to shorten the Client ID, respecting the configured prefix in its entirety.