-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix invalid username in scram authentication #4118
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #4118 +/- ##
==========================================
- Coverage 83.92% 83.90% -0.02%
==========================================
Files 552 552
Lines 33628 33630 +2
==========================================
- Hits 28223 28218 -5
- Misses 5405 5412 +7
☔ View full report in Codecov by Sentry. |
49f8c98
to
b39a249
Compare
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
b39a249
to
ad67d9e
Compare
elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / ad67d9e small_tests_24 / small_tests / ad67d9e small_tests_25_arm64 / small_tests / ad67d9e small_tests_25 / small_tests / ad67d9e ldap_mnesia_24 / ldap_mnesia / ad67d9e dynamic_domains_mysql_redis_25 / mysql_redis / ad67d9e ldap_mnesia_25 / ldap_mnesia / ad67d9e dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / ad67d9e dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / ad67d9e dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / ad67d9e internal_mnesia_25 / internal_mnesia / ad67d9e pgsql_cets_25 / pgsql_cets / ad67d9e pgsql_mnesia_25 / pgsql_mnesia / ad67d9e mysql_redis_25 / mysql_redis / ad67d9e mssql_mnesia_25 / odbc_mssql_mnesia / ad67d9e pgsql_mnesia_24 / pgsql_mnesia / ad67d9e mim_c2s_SUITE:init_per_suite{'EXIT',
{{badrpc,
{'EXIT',
{noproc,
{gen_server,call,
[gen_hook,
{delete_handler,
{user_send_presence,<<"localhost">>},
{hook_handler,50,
fun mod_presence:user_send_presence/3,
#{hook_name => user_send_presence,
hook_tag => <<"localhost">>,
host_type => <<"localhost">>}}}]}}}},
[{distributed_helper,rpc,
[#{node => mongooseim@localhost},
mongoose_modules,ensure_stopped,
[<<"localhost">>,mod_presence]],
[{file,
"/home/circleci/project/big_tests/tests/distributed_helper.erl"},
{line,121}]},
{dynamic_modules,'-ensure_stopped/3-lc$^0/1-0-',3,
[{file,"/home/circleci/project/big_tests/tests/dynamic_modules.erl"},
{line,39}]},
{mim_c2s_SUITE,init_per_suite,1,
[{file,"/home/circleci/project/big_tests/tests/mim_c2s_SUITE.erl"},
{line,46}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} acc_e2e_SUITE:init_per_suite{'EXIT',
{{badrpc,
{'EXIT',
{badarg,
[{ets,new,
[test_message_index,
[named_table,public,{heir,undefined,none}]],
[{error_info,#{module => erl_stdlib_errors}}]},
{acc_test_helper,recreate_table,0,[{file,[]},{line,77}]}]}}},
[{distributed_helper,rpc,
[#{node => mongooseim@localhost},acc_test_helper,recreate_table,[]],
[{file,
"/home/circleci/project/big_tests/tests/distributed_helper.erl"},
{line,121}]},
{acc_e2e_SUITE,init_per_suite,1,
[{file,"/home/circleci/project/big_tests/tests/acc_e2e_SUITE.erl"},
{line,68}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} adhoc_SUITE:disco_visible:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{noproc,
{gen_server,call,
[gen_hook,
{delete_handler,
{disco_local_features,<<"localhost">>},
{hook_handler,99,
fun mod_adhoc:disco_local_features/3,
#{hook_name => disco_local_features,
hook_tag => <<"localhost">>,
host_type => <<"localhost">>}}}]}}}},
[{distributed_helper,rpc,
[#{node => mongooseim@localhost},
mongoose_modules,replace_modules,
[<<"localhost">>,[],
#{mod_adhoc =>
#{iqdisc => one_queue,report_commands_node => true}}]],
[{file,
"/home/circleci/project/big_tests/tests/distributed_helper.erl"},
{line,121}]},
{adhoc_SUITE,init_modules,2,
[{file,"/home/circleci/project/big_tests/tests/adhoc_SUITE.erl"},
{line,81}]},
{adhoc_SUITE,init_per_group,2,
[{file,"/home/circleci/project/big_tests/tests/adhoc_SUITE.erl"},
{line,66}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} adhoc_SUITE:adhoc:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE">>,<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,2,
[{file,
... anonymous_SUITE:anonymous:connection_is_registered_with_sasl_anon{error,
{{badmatch,
{error,
{{badmatch,{error,econnrefused}},
[{escalus_tcp,init,1,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,209}]},
{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},
{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,226}]}]}}},
[{escalus_tcp,connect,1,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_tcp.erl"},
{line,88}]},
{escalus_connection,connect,1,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,187}]},
{escalus_connection,start,2,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,144}]},
{escalus_client,start,3,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,58}]},
{escalus_story,'-start_ready_clients/2-fun-0-',3,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,131}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},
{escalus_story,start_ready_clients,2,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escal... auth_methods_for_c2s_SUITE:two_methods_enabled:init_per_group{'EXIT',
{{badmatch,{error,{not_started,mongooseim}}},
[{ejabberd_node_utils,restart_application,2,
[{file,
"/home/circleci/project/big_tests/tests/ejabberd_node_utils.erl"},
{line,76}]},
{auth_methods_for_c2s_SUITE,init_per_group,2,
[{file,
"/home/circleci/project/big_tests/tests/auth_methods_for_c2s_SUITE.erl"},
{line,40}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} auth_methods_for_c2s_SUITE:metrics:metrics_incremented_on_user_connect{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_metrics_incremented_on_user_connect_8">>,<<"localhost">>,
<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalu... bosh_SUITE:without_bosh:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{noproc,
{gen_server,call,
[gen_hook,
{delete_handler,
{node_cleanup,global},
{hook_handler,50,fun mod_bosh:node_cleanup/3,
#{hook_name => node_cleanup,
hook_tag => global}}}]}}}},
[{distributed_helper,rpc,
[#{node => mongooseim@localhost},
mongoose_modules,replace_modules,
[<<"localhost">>,[mod_bosh],#{}]],
[{file,
"/home/circleci/project/big_tests/tests/distributed_helper.erl"},
{line,121}]},
{bosh_SUITE,init_per_group,2,
[{file,"/home/circleci/project/big_tests/tests/bosh_SUITE.erl"},
{line,123}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} bosh_SUITE:essential:create_and_terminate_session{error,{thrown,{timeout,session_creation_response}}} bosh_SUITE:essential_https:create_and_terminate_session{error,{thrown,{timeout,session_creation_response}}} bosh_SUITE:chat:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"carol">>,<<"localhost">>,<<"jinglebells">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,2,
[{file,
... bosh_SUITE:chat_https:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"carol">>,<<"localhost">>,<<"jinglebells">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,2,
[{file,
... bosh_SUITE:time:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{noproc,
{gen_server,call,
[gen_hook,
{delete_handler,
{node_cleanup,global},
{hook_handler,50,fun mod_bosh:node_cleanup/3,
#{hook_name => node_cleanup,
hook_tag => global}}}]}}}},
[{distributed_helper,rpc,
[#{node => mongooseim@localhost},
mongoose_modules,replace_modules,
[<<"localhost">>,[],
#{mod_bosh =>
#{backend => mnesia,inactivity => 2,max_pause => 120,
max_wait => 5,server_acks => false}}]],
[{file,
"/home/circleci/project/big_tests/tests/distributed_helper.erl"},
{line,121}]},
{bosh_SUITE,init_per_group,2,
[{file,"/home/circleci/project/big_tests/tests/bosh_SUITE.erl"},
{line,119}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} bosh_SUITE:acks:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"carol">>,<<"localhost">>,<<"jinglebells">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,2,
[{file,
... bosh_SUITE:server_acks:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{noproc,
{gen_server,call,
[gen_hook,
{delete_handler,
{node_cleanup,global},
{hook_handler,50,fun mod_bosh:node_cleanup/3,
#{hook_name => node_cleanup,
hook_tag => global}}}]}}}},
[{distributed_helper,rpc,
[#{node => mongooseim@localhost},
mongoose_modules,replace_modules,
[<<"localhost">>,[],
#{mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => true}}]],
[{file,
"/home/circleci/project/big_tests/tests/distributed_helper.erl"},
{line,121}]},
{bosh_SUITE,init_per_group,2,
[{file,"/home/circleci/project/big_tests/tests/bosh_SUITE.erl"},
{line,133}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1783}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1380}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1224}]}]}} bosh_SUITE:interleave_requests_statem:init_per_group{'EXIT',
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"carol">>,<<"localhost">>,<<"jinglebells">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,2,
[{file,
... carboncopy_SUITE:one2one:discovering_support{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_discovering_support_9">>,<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users... carboncopy_SUITE:one2one:disabling_carbons{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_disabling_carbons_10">>,<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,... carboncopy_SUITE:one2one:enabling_carbons{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_enabling_carbons_11">>,<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,2... carboncopy_SUITE:one2one:non_enabled_clients_dont_get_sent_carbons{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_non_enabled_clients_dont_get_sent_carbons_13">>,
<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
... carboncopy_SUITE:one2one:avoiding_carbons{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_avoiding_carbons_12">>,<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{escalus_ejabberd,create_users,2... carboncopy_SUITE:one2one:non_enabled_clients_dont_get_received_carbons{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_non_enabled_clients_dont_get_received_carbons_14">>,
<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
... carboncopy_SUITE:one2one:unavailable_resources_dont_get_carbons{error,
{{badrpc,
{'EXIT',
{badarg,
[{ets,lookup,
[mongoose_domain_core,<<"localhost">>],
[{error_info,
#{cause => id,module => erl_stdlib_errors}}]},
{mongoose_domain_core,get_host_type,1,
[{file,
"/home/circleci/project/src/domain/mongoose_domain_core.erl"},
{line,48}]},
{ejabberd_auth,call_auth_modules_for_domain,3,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,512}]},
{ejabberd_auth,does_user_exist,1,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,310}]},
{ejabberd_auth,try_register,2,
[{file,
"/home/circleci/project/src/auth/ejabberd_auth.erl"},
{line,220}]},
{mongoose_account_api,register_user,3,
[{file,
"/home/circleci/project/src/mongoose_account_api.erl"},
{line,82}]},
{ejabberd_admin,register,3,[]}]}}},
[{escalus_rpc,call_with_cookie_match,
[mongooseim@localhost,ejabberd_admin,register,
[<<"alicE_unavailable_resources_dont_get_carbons_15">>,
<<"localhost">>,<<"matygrysa">>],
3000,mongooseim],
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_rpc.erl"},
{line,34}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},
{es... 179 errors were truncated pgsql_mnesia_24 / pgsql_mnesia / ad67d9e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
Addresses MIM-2035
When the connecting user starts SASL authentication with SCRAM, e.g.
which decodes to
MongooseIM has the following error in the logs:
This is all because the user name starts with a space, and string-prepping results with an error atom, which is then passed to the following functions - and this shouldn’t take place.
MongooseIM should return with a proper authentication error instead.