emqx/changes
Kjell Winblad aa57ea9ee1 fix: mongodb authz crash
This fixes a crash with an error in the log file (see below) that
happened when the MongoDB authorization module queried the database. The
reason is that the collection name that was sent to the mongodb
connection was an atom. This is fixed by making sure it is not an atom.

2023-03-08T17:16:34.215523+01:00 [error] msg: query_mongo_error, mfa:
emqx_authz_mongodb:authorize/4, line: 95, peername: 127.0.0.1:53212,
clientid: client123, collection: mqtt_acl, filter: #{username =>
<<"emqx_u">>}, reason: {resource_error,#{msg => #{error =>
{error,{error_cannot_parse_response,{op_msg_response,#{<<"code">> =>
73,<<"codeName">> => <<"InvalidNamespace">>,<<"errmsg">> => <<"Failed to
parse namespace element">>,<<"ok">> => 0.0}}}},id =>
<<"emqx_authz_mongodb:3">>,name => call_query,request =>
{find,mqtt_acl,#{username => <<"emqx_u">>},#{}},stacktrace =>
[{mc_connection_man,reply,1,[{file,"mc_connection_man.erl"},{line,123}],
...]}, reason => exception}}, resource_id: <<"emqx_authz_mongodb:3">>

Fixes: https://github.com/emqx/emqx/issues/9783
2023-03-09 16:01:23 +01:00
..
ce fix: mongodb authz crash 2023-03-09 16:01:23 +01:00
ee chore: update changes 2023-03-08 11:13:51 +08:00
v5.0.1-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.2-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.3-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.4-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.5-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.6-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.7-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.8-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.9-en.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.9-zh.md chore: split change logs 2022-10-24 09:40:08 +02:00
v5.0.10-en.md chore: add missed changes 2022-12-15 16:16:27 +08:00
v5.0.10-zh.md chore: add missed changes 2022-12-15 16:16:27 +08:00
v5.0.11-en.md chore: update changes 2022-11-25 21:39:12 +08:00
v5.0.11-zh.md chore: update v5.0.12 changelog 2022-11-25 07:33:36 +08:00
v5.0.12-en.md docs: update change log, record fix with the right PR 2022-12-14 20:01:17 +01:00
v5.0.12-zh.md docs: update change log, record fix with the right PR 2022-12-14 20:01:17 +01:00
v5.0.13-en.md chore: move changelog entries to v5.0.15 2023-01-13 10:04:29 +01:00
v5.0.13-zh.md chore: move changelog entries to v5.0.15 2023-01-13 10:04:29 +01:00
v5.0.14-en.md docs: merge released change logs (v5.0.14) 2023-01-16 13:39:11 +01:00
v5.0.14-zh.md docs: merge released change logs (v5.0.14) 2023-01-16 13:39:11 +01:00
v5.0.15-en.md chore: Generate changelog for v5.0.15 2023-01-20 17:00:55 +01:00
v5.0.15-zh.md chore: Generate changelog for v5.0.15 2023-01-20 17:00:55 +01:00
v5.0.16-en.md chore: Generate changelog for v5.0.16 2023-02-02 17:43:01 +01:00
v5.0.16-zh.md chore: Generate changelog for v5.0.16 2023-02-02 17:43:01 +01:00
v5.0.17-en.md chore: update v5.0.17 changelog 2023-02-13 19:26:21 +08:00
v5.0.17-zh.md chore: update v5.0.17 changelog 2023-02-13 19:26:21 +08:00
v5.0.18.en.md docs: merge missed change logs to v5.0.18 2023-03-01 14:06:23 +01:00
v5.0.18.zh.md docs: merge missed change logs to v5.0.18 2023-03-01 14:06:23 +01:00
v5.0.19.en.md chore: Generate changelog for v5.0.19 2023-03-01 11:56:33 +01:00
v5.0.19.zh.md chore: Generate changelog for v5.0.19 2023-03-01 11:56:33 +01:00