-
Notifications
You must be signed in to change notification settings - Fork 421
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
Xeps/bind2 #4113
Xeps/bind2 #4113
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature/sasl2 #4113 +/- ##
==============================================
Coverage 84.01% 84.02%
==============================================
Files 553 554 +1
Lines 33818 33875 +57
==============================================
+ Hits 28411 28462 +51
- Misses 5407 5413 +6
☔ View full report in Codecov by Sentry. |
26e64da
to
b7b3a53
Compare
This comment was marked as outdated.
This comment was marked as outdated.
b7b3a53
to
9ee0ac3
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
9ee0ac3
to
c460ef3
Compare
elasticsearch_and_cassandra_25 / elasticsearch_and_cassandra_mnesia / c460ef3 small_tests_24 / small_tests / c460ef3 small_tests_25 / small_tests / c460ef3 small_tests_25_arm64 / small_tests / c460ef3 ldap_mnesia_24 / ldap_mnesia / c460ef3 dynamic_domains_mysql_redis_25 / mysql_redis / c460ef3 dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / c460ef3 ldap_mnesia_25 / ldap_mnesia / c460ef3 dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / c460ef3 internal_mnesia_25 / internal_mnesia / c460ef3 dynamic_domains_mssql_mnesia_25 / odbc_mssql_mnesia / c460ef3 pgsql_cets_25 / pgsql_cets / c460ef3 mysql_redis_25 / mysql_redis / c460ef3 mssql_mnesia_25 / odbc_mssql_mnesia / c460ef3 muc_SUITE:register:user_changes_nick{error,
{{assertion_failed,assert,is_iq_result,
[{xmlel,<<"iq">>,
[{<<"type">>,<<"set">>},
{<<"id">>,<<"1b0c2b9d7cf356d3ed809195d9b54f0d">>},
{<<"to">>,<<"muc.localhost">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:register">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"type">>,<<"hidden">>},
{<<"var">>,<<"FORM_TYPE">>}],
[{xmlel,<<"value">>,[],
[{xmlcdata,<<"jabber:iq:register">>}]}]},
{xmlel,<<"field">>,
[{<<"type">>,<<"text-single">>},
{<<"var">>,<<"nick">>}],
[{xmlel,<<"value">>,[],
[{xmlcdata,
<<"thirdwitch1room-6483adf6d0">>}]}]}]}]}]}],
{xmlel,<<"iq">>,
[{<<"from">>,<<"muc.localhost">>},
{<<"to">>,<<"alice_user_changes_nick_2677@localhost/res1">>},
{<<"type">>,<<"error">>},
{<<"id">>,<<"1b0c2b9d7cf356d3ed809195d9b54f0d">>}],
[{xmlel,<<"query">>,
[{<<"xmlns">>,<<"jabber:iq:register">>}],
[{xmlel,<<"x">>,
[{<<"xmlns">>,<<"jabber:x:data">>},
{<<"type">>,<<"submit">>}],
[{xmlel,<<"field">>,
[{<<"type">>,<<"hidden">>},
{<<"var">>,<<"FORM_TYPE">>}],
[{xmlel,<<"value">>,[],
[{xmlcdata,<<"... pgsql_mnesia_25 / pgsql_mnesia / c460ef3 pgsql_mnesia_24 / pgsql_mnesia / c460ef3 mssql_mnesia_25 / odbc_mssql_mnesia / c460ef3 bosh_SUITE:essential:accept_higher_hold_value{error,
{{assertEqual,
[{module,bosh_SUITE},
{line,260},
{expression,"get_bosh_sessions ( )"},
{expected,[]},
{value,
[{bosh_session,<<"68d268fa194779b175fb3d3fe51dbc63bdcfd848">>,
<9327.10216.0>}]}]},
[{bosh_SUITE,accept_higher_hold_value,1,
[{file,"/home/circleci/project/big_tests/tests/bosh_SUITE.erl"},
{line,260}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1291}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1223}]}]}} mssql_mnesia_25 / odbc_mssql_mnesia / c460ef3 |
%% The XEP does not specify what to do if the resource wasn't bound | ||
%% so we just set failed here and move along with SASL2 | ||
Error = #xmlel{name = <<"failed">>, attrs = [?XMLNS_BIND2], children = MaybeSmChild}, | ||
{ok, mod_sasl2:update_inline_request(SaslAcc1, ?MODULE, Error, failure)} |
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.
would be nice to have a test here (not covered)
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.
ok
@NelsonVides: Good job! |
Implements partial support for bind2. Here we can already bind a resource and start a session directly after authentication, saving one more round-trip.
Support for carbons and csi on the same roundtrip coming in the next PR #4114