emqx/apps
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
..
emqx Merge pull request #10079 from qzhuyan/fix/william/i18n-broker_shared_subscription_strategy 2023-03-07 21:57:07 +01:00
emqx_authn fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_authz fix: mongodb authz crash 2023-03-09 16:01:23 +01:00
emqx_auto_subscribe docs: fix bad i18n files 2023-02-08 17:25:22 +01:00
emqx_bridge feat(bridges): integrate the DynamoDB into data bridges 2023-03-08 11:13:38 +08:00
emqx_conf fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_connector feat: add clickhouse database bridge 2023-03-02 12:22:11 +01:00
emqx_ctl chore: change 'emqx_ctl' usage to 'emqx ctl' 2023-02-22 13:57:55 +01:00
emqx_dashboard fix(dashboard): fix swagger spec generation 2023-02-23 22:09:36 +02:00
emqx_exhook fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_gateway fix: update max_awaiting_rel in session 2023-03-06 17:06:40 +08:00
emqx_machine feat(bin/emqx): diagnose boot failure 2023-03-02 14:46:09 +01:00
emqx_management fix(emqx_management): ensure binary string for log_path 2023-03-01 07:45:36 +01:00
emqx_modules fix(dashboard): fix swagger spec generation 2023-02-23 22:09:36 +02:00
emqx_plugin_libs chore: bump apps version 2023-02-14 22:04:29 +08:00
emqx_plugins fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_prometheus fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_psk ci: add i18n style check script 2023-02-09 11:41:52 +01:00
emqx_resource feat: add clickhouse database bridge 2023-03-02 12:22:11 +01:00
emqx_retainer Merge pull request #9994 from sstrigler/EMQX-3688-emqx-mgmt 2023-02-22 14:30:36 +01:00
emqx_rule_engine fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_slow_subs fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00
emqx_statsd fix(schema): binary string for default values 2023-02-21 09:09:51 +01:00