=== Test case: mim_c2s_SUITE:too_big_stanza_is_rejected/1 (click for source code)

=== Config value:

    [{c2s_listener,
         #{access => c2s,backlog => 1024,backwards_compatible_session => true,
           c2s_state_timeout => 5000,connection_type => undefined,
           hibernate_after => 0,ip_address => "0",
           ip_tuple => {0,0,0,0},
           ip_version => 4,max_connections => infinity,
           max_stanza_size => 65536,module => mongoose_c2s_listener,
           num_acceptors => 100,port => 5222,proto => tcp,
           proxy_protocol => false,reuse_port => false,shaper => c2s_shaper,
           tls =>
               #{certfile => "priv/ssl/fake_server.pem",
                 ciphers => "TLSv1.2:TLSv1.3",
                 dhfile => "priv/ssl/fake_dh_server.pem",mode => starttls,
                 module => fast_tls,
                 protocol_options =>
                     ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"],
                 verify_mode => none}}},
     {watchdog,<0.1483.0>},
     {escalus_overrides,
         [{initial_activity,#Fun<mim_c2s_SUITE.0.67541742>},
          {start_ready_clients,fun mim_c2s_SUITE:escalus_start/2}]},
     {preset,"ldap_mnesia"},
     {mim_data_dir,
         "/home/circleci/project/big_tests/tests/mim_c2s_SUITE_data"},
     {tc_logfile,
         "/home/circleci/project/big_tests/ct_report/ct_run.test@d67e96ba7168.2024-04-23_08.56.03/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_08.56.05/mim_c2s_suite.too_big_stanza_is_rejected.131.html"},
     {tc_group_properties,[{name,basic},parallel]},
     {tc_group_path,[]},
     {data_dir,
         "/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mim_c2s_SUITE_data/"},
     {priv_dir,
         "/home/circleci/project/big_tests/ct_report/ct_run.test@d67e96ba7168.2024-04-23_08.56.03/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-23_08.56.05/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => mnesia,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => ldap,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,
              ldap =>
                  #{base => <<"ou=Users,dc=esl,dc=com">>,
                    binary_search_fields => [],deref => never,
                    filter => <<"(objectClass=inetOrgPerson)">>,
                    pool_tag => default,
                    search_fields =>
                        [{<<"User">>,<<"%u">>},
                         {<<"Full Name">>,<<"displayName">>},
                         {<<"Given Name">>,<<"givenName">>},
                         {<<"Middle Name">>,<<"initials">>},
                         {<<"Family Name">>,<<"sn">>},
                         {<<"Nickname">>,<<"%u">>},
                         {<<"Birthday">>,<<"birthDay">>},
                         {<<"Country">>,<<"c">>},
                         {<<"City">>,<<"l">>},
                         {<<"Email">>,<<"mail">>},
                         {<<"Organization Name">>,<<"o">>},
                         {<<"Organization Unit">>,<<"ou">>}],
                    search_operator => 'and',
                    search_reported =>
                        [{<<"Full Name">>,<<"FN">>},
                         {<<"Given Name">>,<<"FIRST">>},
                         {<<"Middle Name">>,<<"MIDDLE">>},
                         {<<"Family Name">>,<<"LAST">>},
                         {<<"Nickname">>,<<"NICK">>},
                         {<<"Birthday">>,<<"BDAY">>},
                         {<<"Country">>,<<"CTRY">>},
                         {<<"City">>,<<"LOCALITY">>},
                         {<<"Email">>,<<"EMAIL">>},
                         {<<"Organization Name">>,<<"ORGNAME">>},
                         {<<"Organization Unit">>,<<"ORGUNIT">>}],
                    uids => [{<<"uid">>,<<"%u">>}],
                    vcard_map =>
                        [{<<"NICKNAME">>,<<"%u">>,[]},
                         {<<"FN">>,<<"%s">>,[<<"displayName">>]},
                         {<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
                         {<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
                         {<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
                         {<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
                         {<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
                         {<<"CTRY">>,<<"%s">>,[<<"c">>]},
                         {<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
                         {<<"STREET">>,<<"%s">>,[<<"street">>]},
                         {<<"REGION">>,<<"%s">>,[<<"st">>]},
                         {<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
                         {<<"TITLE">>,<<"%s">>,[<<"title">>]},
                         {<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
                         {<<"DESC">>,<<"%s">>,[<<"description">>]},
                         {<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
                         {<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
                         {<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
                         {<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
                         {<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}]},
              matches => 30,search => true}}},
     {escalus_users,
         [{alice,
              [{username,<<"alicE">>},
               {server,<<"localhost">>},
               {password,<<"matygrysa">>},
               {connection_steps,
                   [start_stream,stream_features,maybe_use_ssl,authenticate,
                    bind]}]},
          {alice_bis,
              [{username,<<"alicE">>},
               {server,<<"localhost.bis">>},
               {host,<<"localhost">>},
               {password,<<"matygrysa">>}]},
          {bob,
              [{username,<<"bOb">>},
               {server,<<"localhost">>},
               {password,<<"makrolika">>},
               {connection_steps,
                   [start_stream,stream_features,maybe_use_ssl,authenticate,
                    bind]}]},
          {carol,
              [{username,<<"carol">>},
               {server,<<"localhost">>},
               {password,<<"jinglebells">>},
               {transport,escalus_bosh},
               {path,<<"/http-bind">>},
               {port,5280}]},
          {carol_s,
              [{username,<<"carol_s">>},
               {server,<<"localhost">>},
               {password,<<"jinglebells_s">>},
               {transport,escalus_bosh},
               {ssl,true},
               {path,<<"/http-bind">>},
               {port,5285},
               {ssl_opts,[{verify,verify_none}]}]},
          {kate,
              [{username,<<"kate">>},
               {server,<<"localhost">>},
               {password,<<"makrowe;p">>}]},
          {mike,
              [{username,<<"mike">>},
               {server,<<"localhost">>},
               {password,<<"nicniema">>}]},
          {john,
              [{username,<<"john">>},
               {server,<<"localhost">>},
               {password,<<"cosontuma">>}]},
          {geralt,
              [{username,<<"geralt">>},
               {server,<<"localhost">>},
               {password,<<"witcher">>},
               {transport,escalus_ws},
               {port,5280},
               {wspath,<<"/ws-xmpp">>}]},
          {geralt_s,
              [{username,<<"geralt_s">>},
               {server,<<"localhost">>},
               {password,<<"witcher_s">>},
               {transport,escalus_ws},
               {ssl,true},
               {port,5285},
               {wspath,<<"/ws-xmpp">>},
               {ssl_opts,[{verify,verify_none}]}]},
          {hacker,
              [{username,<<"hacker">>},
               {server,<<"localhost">>},
               {password,<<"bringdowntheserver">>},
               {port,5223}]},
          {admin,
              [{username,<<"admin">>},
               {server,<<"localhost">>},
               {password,<<"bruce_almighty">>}]},
          {secure_joe,
              [{username,<<"secure_joe">>},
               {server,<<"localhost">>},
               {password,<<"break_me">>},
               {starttls,required}]},
          {astrid,
              [{username,<<"astrid">>},
               {server,<<"sogndal">>},
               {host,<<"localhost">>},
               {password,<<"doctor">>}]},
          {alice2,
              [{username,<<"alice">>},
               {server,<<"fed1">>},
               {host,<<"localhost">>},
               {port,5242},
               {password,<<"makota2">>}]},
          {bob2,
              [{username,<<"bob">>},
               {server,<<109,105,99,104,97,197,130>>},
               {host,<<"localhost">>},
               {port,5242},
               {password,<<"makota3">>}]},
          {clusterguy,
              [{username,<<"clusterguy">>},
               {server,<<"localhost">>},
               {host,<<"localhost">>},
               {password,<<"distributionftw">>},
               {port,5232}]},
          {clusterbuddy,
              [{username,<<"clusterbuddy">>},
               {server,<<"localhost">>},
               {host,<<"localhost">>},
               {password,<<"wasssssssup">>},
               {port,5232}]},
          {eve,
              [{username,<<"eve">>},
               {server,<<"localhost">>},
               {password,<<"password">>},
               {port,5252}]},
          {neustradamus,
              [{username,<<"neustradamus">>},
               {server,<<"localhost">>},
               {host,<<"localhost">>},
               {password,<<"scramshaplus">>},
               {starttls,required},
               {tls_module,fast_tls}]},
          {alice3,
              [{username,<<"alice">>},
               {server,<<"example.com">>},
               {host,<<"localhost">>},
               {password,<<"makota2">>}]},
          {bob3,
              [{username,<<"bob">>},
               {server,<<"example.org">>},
               {host,<<"localhost">>},
               {password,<<"makota3">>},
               {port,5232}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d67e96ba7168.2024-04-23_08.56.03"

=== Started at 2024-04-23 08:56:05


*** CT 2024-04-23 08:56:05.635 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-04-23 08:56:05.772 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 08:56:05.780 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cd070f08b5305fd1' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 08:56:05.797 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-23 08:56:05.802 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzcAbWF0eWdyeXNh</auth>



*** User 2024-04-23 08:56:05.808 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 08:56:05.808 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 08:56:05.809 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f88f383fb4c6a93d' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@localhost'>

*** User 2024-04-23 08:56:05.809 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:features>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-23 08:56:05.809 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<iq type='set' id='e0b53c68662dc666a6208c14a8c25146'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-23 08:56:05.814 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<iq id='e0b53c68662dc666a6208c14a8c25146' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-23 08:56:05.815 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource out
<message to='alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource' type='chat'>
	<body>cb2ad0d13ca3042222c5d8378224d3ec510ca97b7dd627f4f6b32c0bbc4fd4b1b45a9c3aefe399f54b06eb0aa5fa878e52528d648f41155a465434890660145bf32b98364ce620455d5b13824aea5fb62641f06764fb5745a20f675cda23f29b20b971740452c52c26b03530cb3245e6bf2c0018a5f3e04c0991ba1c52f201d6ece65b6ec5dfad7501cc37c11981572786bf1916b62744c6554a7ccd7944e928293229f71edf8c39ed20f4ff497c2541791e3900ef230638c897f6c06d2fba0798d9abb42772941acf0635bedc52963228daed898535d64cf7ec43a1ed7832bc705c70b9c8c797029b654a332e38fa55ea9a554fda570e03365dd02d2a33ff9f199ea9b1f6abde1a6def4465e3ee3647480b1d4a490f6460bb538d387f833df6d66993457462136df5d6972f20d283efb71e804aa3b540f9c11e64787a704c6ff2988214dc36d0b3526e0b28caf0fa5297ff44e5c79414e3b1e508f7de54cfe17a99820c2406218fe1d7c31282e2f73d3f8251d55e569caa725dfeeeff8a6aa6814438ebb6488dc1eeecf8e925a0d7077c51f4d4b2625655aa19561247d1f3b885e30e5cb8e5a286b159cd80684a0ac3f295483c45919f30658611fb3189b6c28206c0ce91f39c8c1f300c438ab14728568c2dc99f212194e87f654a9846a40412ae1044bc2890d396aafbdbc66f8650c9d228001a43c64b5b0e1f7423fc80a48068e67e3d91258f58f187d833dc0ffe14a6f944cb5ab6c7f2800fec5fa873844105b716b9c6c4f5d7a4dcece1096280745b3918ca6734753d9e20ea3e71850f16dc7df5fa76fef3cdcae03fbfadcf1179aee3c1f07c9f00358a2b3b5224fc0defd91d8f4c14cfeafbaaa35a9a41ca96dbc692d391d3f8c4f3530237815bb2c7fff1e6f4a2ff24d26cead265f12499e5f36061e050354a5810d49dbf948ac0a9a85367da9a85b70d422de1ece532e872e6ffe0e81d00067e71bdcb67f6635ef47424239a4974c0b6a6b1bdf7f397af56b92e8b134e2c06ef6746bb87aefaef92b28c43f6f6b24ff570a86512a1e953c3a4c538493ebd18eefebe01be14fb18736418ddc7459ce1cf9083f9d3bb2b64d2b47f81ff522387c3f6054592c69a804f83cd059c1f03cc8f7a14d8ec34bd3ac8827d8d5eba0ab4087e20069214d669f02034f20556faf2ffb09c9845a96fe4c7bed6f4d8a0aaf32a0633e5bc4126dffd44d75b44d3ca2ed293cdbead96bb68718b1eb1287e83b83764381317a88089f28b0a7dda09c3a3c59810c1e957865617eda99b69026fd23af3913f3b0922b0af08b5cf1382e247cd795a7c1d1a4fc95a602235c5a70391060a74a4cdfba4f6ba490ccde2bba0867beac8e45c15bc0b86179429c290fddf5c611b51d426fb42f68af893af1e63eaa01f77634cdc0fac66d6e699f14e07c579e54597be10605c24</body>
</message>



*** User 2024-04-23 08:56:05.815 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource in
<stream:error>
	<policy-violation xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
	<text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-streams'>element too big</text>
</stream:error>



*** User 2024-04-23 08:56:05.815 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-23 08:56:05.820 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-23 08:56:05
=== successfully completed test case
=== === Returned value: true