From e9c2b5d1cf55c7a269a5b638b96938a060acce5c Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Mon, 27 Dec 2021 16:17:59 +0800 Subject: [PATCH 1/3] fix(rewrite): don't check and translate body for topic rewrite APIs --- apps/emqx_modules/src/emqx_rewrite_api.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_modules/src/emqx_rewrite_api.erl b/apps/emqx_modules/src/emqx_rewrite_api.erl index 3f92cd11f..8435385f2 100644 --- a/apps/emqx_modules/src/emqx_rewrite_api.erl +++ b/apps/emqx_modules/src/emqx_rewrite_api.erl @@ -33,7 +33,7 @@ ]). api_spec() -> - emqx_dashboard_swagger:spec(?MODULE, #{check_schema => true, translate_body => true}). + emqx_dashboard_swagger:spec(?MODULE). paths() -> ["/mqtt/topic_rewrite"]. From 9b21945892c704f5db6e35a5c61a88ec0d2d253d Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Mon, 27 Dec 2021 16:20:41 +0800 Subject: [PATCH 2/3] fix(rewrite): rewrite to utf8 topics failed --- rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebar.config b/rebar.config index 1894d817d..2bb8b2d8b 100644 --- a/rebar.config +++ b/rebar.config @@ -46,7 +46,7 @@ {deps, [ {lc, {git, "https://github.com/qzhuyan/lc.git", {tag, "0.1.2"}}} , {gpb, "4.11.2"} %% gpb only used to build, but not for release, pin it here to avoid fetching a wrong version due to rebar plugins scattered in all the deps - , {typerefl, {git, "https://github.com/k32/typerefl", {tag, "0.8.5"}}} + , {typerefl, {git, "https://github.com/k32/typerefl", {tag, "0.8.6"}}} , {ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.1.12"}}} , {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}} , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}} From bf2392f682c19ebbc07bbccf9514069c737cc6c6 Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Tue, 28 Dec 2021 10:52:30 +0800 Subject: [PATCH 3/3] chore(typerefl): update typerefl to 0.8.6 --- apps/emqx/rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx/rebar.config b/apps/emqx/rebar.config index 330291def..c94208594 100644 --- a/apps/emqx/rebar.config +++ b/apps/emqx/rebar.config @@ -11,7 +11,7 @@ {deps, [ {lc, {git, "https://github.com/qzhuyan/lc.git", {tag, "0.1.2"}}} , {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}} - , {typerefl, {git, "https://github.com/k32/typerefl", {tag, "0.8.5"}}} + , {typerefl, {git, "https://github.com/k32/typerefl", {tag, "0.8.6"}}} , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}} , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.0"}}} , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.0"}}}