=== 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.1481.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@7dcd0bc6efe6.2024-03-11_11.28.05/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_11.28.06/mim_c2s_suite.too_big_stanza_is_rejected.386.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@7dcd0bc6efe6.2024-03-11_11.28.05/big_tests.tests.mim_c2s_SUITE.logs/run.2024-03-11_11.28.06/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@7dcd0bc6efe6.2024-03-11_11.28.05"

=== Started at 2024-03-11 11:28:07


*** CT 2024-03-11 11:28:07.114 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-03-11 11:28:07.221 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:28:07.238 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ab2216d2870282ec' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:28:07.247 ***🔗
alicE_too_big_stanza_is_rejected_9@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-03-11 11:28:07.260 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Rvb19iaWdfc3RhbnphX2lzX3JlamVjdGVkXzkAbWF0eWdyeXNh</auth>



*** User 2024-03-11 11:28:07.269 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:28:07.269 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:28:07.275 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0fe3b5e4a0ee9af5' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_9@localhost'>

*** User 2024-03-11 11:28:07.275 ***🔗
alicE_too_big_stanza_is_rejected_9@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-03-11 11:28:07.276 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost out
<iq type='set' id='7fbb8e9a58863cea10844b4f187d49d7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-03-11 11:28:07.276 ***🔗
alicE_too_big_stanza_is_rejected_9@localhost in
<iq id='7fbb8e9a58863cea10844b4f187d49d7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-03-11 11:28:07.276 ***🔗
alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource out
<message to='alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource' type='chat'>
	<body>f59cb5a53f8ca20a90d18f2d1b101c350d1277bdba8c2026a49a0cc197c2c9d7edb534b83ce06a47634a4825a7b9f0e1377c7a3f9277e4d1832d04a2efa415ae26ab098b722c823c5a91bab0af09d5a6543c2a072b27ecab18fa2e665cacec378d7552561b6971f5713cfce3efded8b4f8cc922efb3fea96fd01ced0fd2927520d4b2a70bf935342901ce7fa28a2fd52fdb1e767ba16ca72df9d6a4fd9806541d7c7cb55480ef41ed1e1197da1a3a13267ccaf22380760f90986394ee1b3b225d2cce09f4926e1fe2a474b7f514dbc3119d31e179abe55a84a0df2ee9ba84ffa255541e8be684beb026c6b78a28895a651c23799463254095940e43d9792a3908d4476baf8872429223e3fe41725a998e7b938cad2e7984daba7391ad160666d774674abbac6354c22d2a7a154f53cd959a5ca18040d30650143a16df7d1ac2e283d90f426cfd4116111bf1e27c68ba9356a2132688fe196b781706c40cb792f61e34910591ed3c3fdcfe8a71ecf6d0d0b1badead31499c586a13cf35f9348bc0a537b687a999e4629541d77e6ed945c4bfc129d7bd2473637a33caf62d681e760e79f1239b2e131aeaccdb700a5ffe6a11085edca775e646360da9507effd21c258c86256bd11f4d4684644d40702e1b8373d98f8d4aa0913b17a51b113c02886dab31e6b116470dede2755e61208c83e56dc79fff4154dd3d5ad09335fc633a4b23fb04b15a9f3674504251d369875d3c4c10edec495658e2a46f8f03edc5cd2535053b7604b029079ec7d0fb03f5b5f87fb8bed037e9a7cf4740934398b0c600f88cbb724fdff34f968a3f8f0f9b398ecf56ed046f145aac4fb73b66184f12f84afdd5d0e38b9e2f317cdabeb85ad521125e9ca0b78d1e2700d2b0b0e29ecee7efe8989ef80230362de2331f3c608b9f3a565b41095414f0342211113889a56b8c8b13e73db9f7ca26eff726b8b436de6df10d858e36ad3b669b2cfa1cf03f4d9344fdaa416ae7b72911dcb03de22a742f9104925e0dbd53b66d0604e84bcc532376d17a5b39e6864840ea51ed46a4195b4872d827b0778da954bb7e49e63a744d0518278e0663c9986a2a439e95b35fc346089356e6a63230146919700afa2f51213e01e8e59bfc8c6999d54d079b96472f801b4fcd619b2a1c51e09b166846c767517517ae3db3016ad232d4c1b61c323537249f13fd52e716a89b4841f88b512f021c8b496ea0d739d4b913ab51d647259348322eb6d574753e0890714ad1b669b5b6af9e6d07425e1c29e80bef9d677572736bfdf36bcab7696815b1958278cb544e7976e6e5e9e1d25b1093fac740977b976576107b5fba5f0d23318a56e2f0a27a766f5873103d48e875fd3f6c571fc8c16888ce2455b4c589f77b2688e35a573104110f8e79b32cb71d049017a7ae3d31280973bf130c86e15470c</body>
</message>



*** User 2024-03-11 11:28:07.277 ***🔗
alice_too_big_stanza_is_rejected_9@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-03-11 11:28:07.277 ***🔗
alice_too_big_stanza_is_rejected_9@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-03-11 11:28:07.280 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-03-11 11:28:07
=== successfully completed test case
=== === Returned value: true