emqx/changes/ce
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
..
.gitkeep chore: refactor the format-changelog script 2023-02-16 15:25:31 +08:00
feat-9213.en.md chore: add changelog for #9213 2023-02-22 10:10:56 +01:00
feat-9213.zh.md chore: fix translation for #9213 2023-02-27 10:04:45 +01:00
feat-9949.en.md chore(quic): move changelog dir 2023-02-20 10:53:51 +01:00
feat-9949.zh.md chore(quic): move changelog dir 2023-02-20 10:53:51 +01:00
feat-9986.en.md chore: add changelog for #9986 2023-02-27 10:03:41 +01:00
feat-9986.zh.md chore: add changelog for #9986 2023-02-27 10:03:41 +01:00
feat-10019.en.md feat(quic): add hidden low level settings for listeners. 2023-02-24 10:20:28 +01:00
feat-10019.zh.md chore: changelog translation fix. 2023-02-28 14:55:45 +01:00
feat-10022.en.md chore: update changelog 2023-02-27 23:16:30 +01:00
feat-10022.zh.md chore: update changelog 2023-02-27 23:16:30 +01:00
fix-9939.en.md docs: add missing changelogs for 9939 2023-02-20 14:32:00 +01:00
fix-9939.zh.md docs: add missing changelogs for 9939 2023-02-20 14:32:00 +01:00
fix-9958.en.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9958.zh.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9961.en.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9961.zh.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9974.en.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9974.zh.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9978.en.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9978.zh.md chore: update changelogs 2023-02-17 20:50:57 +08:00
fix-9997.en.md fix(dashboard): fix swagger spec generation 2023-02-23 22:09:36 +02:00
fix-9997.zh.md fix(dashboard): fix swagger spec generation 2023-02-23 22:09:36 +02:00
fix-10009.en.md chore: add changelog 2023-02-21 10:41:59 +01:00
fix-10009.zh.md chore: add changelog 2023-02-21 10:41:59 +01:00
fix-10013.en.md chore: add changelog for PR 10013 2023-03-01 12:54:36 +01:00
fix-10013.zh.md chore: add changelog for PR 10013 2023-03-01 12:54:36 +01:00
fix-10014.en.md chore: add changelog for PR 10014 2023-03-01 12:49:21 +01:00
fix-10014.zh.md chore: add changelog for PR 10014 2023-03-01 12:49:21 +01:00
fix-10015.en.md docs: add change logs 2023-02-24 09:11:45 +01:00
fix-10015.zh.md docs: add change logs 2023-02-24 09:11:45 +01:00
fix-10020.en.md docs: add changelogs 2023-02-22 22:18:44 +01:00
fix-10020.zh.md docs: add changelogs 2023-02-22 22:18:44 +01:00
fix-10021.en.md chore(ekka): Bump version 2023-02-22 20:55:04 +01:00
fix-10021.zh.md chore(ekka): Bump version 2023-02-22 20:55:04 +01:00
fix-10027.en.md fix(docker-entrypoint.sh): allow setting EMQX_NODE__NAME for docker 2023-02-24 16:01:38 +01:00
fix-10027.zh.md fix(docker-entrypoint.sh): allow setting EMQX_NODE__NAME for docker 2023-02-24 16:01:38 +01:00
fix-10032.en.md chore: add a changelog entry 2023-02-27 14:55:42 +03:00
fix-10032.zh.md chore: add a changelog entry 2023-02-27 14:55:42 +03:00
fix-10037.en.md docs: add change logs 2023-02-28 14:55:45 +01:00
fix-10037.zh.md docs: add change logs 2023-02-28 14:55:45 +01:00
fix-10041.en.md docs: add changelogs 2023-02-28 21:53:32 +01:00
fix-10041.zh.md docs: add changelogs 2023-02-28 21:53:32 +01:00
fix-10042.en.md fix(changelog): Apply suggestions from code review 2023-02-28 20:29:34 +01:00
fix-10042.zh.md fix(changelog): Apply suggestions from code review 2023-02-28 20:29:34 +01:00
fix-10043.en.md docs: Update changes/ce/fix-10043.en.md 2023-02-28 21:42:06 +01:00
fix-10043.zh.md docs: add changelogs 2023-02-28 21:17:07 +01:00
fix-10044.en.md docs: add changelogs 2023-02-28 21:40:48 +01:00
fix-10044.zh.md docs: Update changes/ce/fix-10044.zh.md 2023-03-01 09:39:16 +01:00
fix-10050.en.md fix: consistently return 404 in case bridge is not found or invalid 2023-03-01 18:03:49 +01:00
fix-10050.zh.md fix: consistently return 404 in case bridge is not found or invalid 2023-03-01 18:03:49 +01:00
fix-10052.en.md feat(bin/emqx): diagnose boot failure 2023-03-02 14:46:09 +01:00
fix-10052.zh.md feat(bin/emqx): diagnose boot failure 2023-03-02 14:46:09 +01:00
fix-10055.en.md chore: add changelog for mqtt.max_awaiting_rel 2023-03-07 10:53:16 +08:00
fix-10055.zh.md chore: add changelog for mqtt.max_awaiting_rel 2023-03-07 10:53:16 +08:00
fix-10056.en.md style: fix punctuation changes/ce/fix-10056.en.md 2023-03-02 12:16:17 +01:00
fix-10056.zh.md chore: add changelog 2023-03-02 11:30:38 +01:00
fix-10066.en.md fix: return human readable error message for most common cases 2023-03-03 16:49:09 +01:00
fix-10066.zh.md fix: return human readable error message for most common cases 2023-03-03 16:49:09 +01:00
fix-10074.en.md fix(emqx_authz): check if type param matches type in body 2023-03-06 11:10:31 +01:00
fix-10074.zh.md fix(emqx_authz): check if type param matches type in body 2023-03-06 11:10:31 +01:00
fix-10079.en.md docs: changelogs 2023-03-06 16:28:28 +01:00
fix-10079.zh.md docs: changelogs 2023-03-06 16:28:28 +01:00
fix-10085.en.md chore: add changelog 2023-03-07 13:56:22 +01:00
fix-10085.zh.md chore: fix translation 2023-03-07 15:12:51 +01:00
fix-10098.en.md fix: mongodb authz crash 2023-03-09 16:01:23 +01:00
fix-10098.zh.md fix: mongodb authz crash 2023-03-09 16:01:23 +01:00
perf-9967.en.md chore: update changelogs 2023-02-17 20:50:57 +08:00
perf-9967.zh.md chore: update changelogs 2023-02-17 20:50:57 +08:00
perf-9998.en.md chore: update changes 2023-02-27 11:41:40 +08:00
perf-9998.zh.md chore: update changes 2023-02-27 11:41:40 +08:00