Browse Source

Merge pull request #10098 from kjellwinblad/kjell/fix/mongo_authz_crash

fix: mongodb authz crash
Kjell Winblad 2 năm trước cách đây
mục cha
commit
baf39fe080

+ 1 - 1
apps/emqx_authz/src/emqx_authz_schema.erl

@@ -240,7 +240,7 @@ http_common_fields() ->
 mongo_common_fields() ->
     [
         {collection,
-            ?HOCON(atom(), #{
+            ?HOCON(binary(), #{
                 required => true,
                 desc => ?DESC(collection)
             })},

+ 1 - 0
changes/ce/fix-10098.en.md

@@ -0,0 +1 @@
+A crash with an error in the log file that happened when the MongoDB authorization module queried the database has been fixed.

+ 1 - 0
changes/ce/fix-10098.zh.md

@@ -0,0 +1 @@
+当MongoDB授权模块查询数据库时,在日志文件中发生的崩溃与错误已经被修复。