diff --git a/apps/emqx_gateway_stomp/test/emqx_stomp_SUITE.erl b/apps/emqx_gateway_stomp/test/emqx_stomp_SUITE.erl index 8bcb00a58..47b191855 100644 --- a/apps/emqx_gateway_stomp/test/emqx_stomp_SUITE.erl +++ b/apps/emqx_gateway_stomp/test/emqx_stomp_SUITE.erl @@ -1088,6 +1088,11 @@ parse(Data) -> Parser = emqx_stomp_frame:initial_parse_state(ProtoEnv), emqx_stomp_frame:parse(Data, Parser). +get_field(command, #stomp_frame{command = Command}) -> + Command; +get_field(body, #stomp_frame{body = Body}) -> + Body. + send_connection_frame(Sock, Username, Password) -> send_connection_frame(Sock, Username, Password, <<"0,0">>). diff --git a/changes/ce/fix-11018.en.md b/changes/ce/fix-11018.en.md new file mode 100644 index 000000000..dbafee36a --- /dev/null +++ b/changes/ce/fix-11018.en.md @@ -0,0 +1,5 @@ +Fixed multiple issues with the Stomp gateway, including: +- Fixed an issue where `is_superuser` was not working correctly. +- Fixed an issue where the mountpoint was not being removed in message delivery. +- After a message or subscription request fails, the Stomp client should be disconnected + immediately after replying with an ERROR message.