=== 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@19371561ec7c.2024-04-15_16.44.55/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_16.44.57/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@19371561ec7c.2024-04-15_16.44.55/big_tests.tests.mim_c2s_SUITE.logs/run.2024-04-15_16.44.57/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@19371561ec7c.2024-04-15_16.44.55"

=== Started at 2024-04-15 16:44:57


*** CT 2024-04-15 16:44:57.392 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_21.html

*** User 2024-04-15 16:44:57.431 ***🔗
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-15 16:44:57.473 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c5cf6eb088b0811c' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-15 16:44:57.483 ***🔗
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-15 16:44:57.496 ***🔗
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-15 16:44:57.504 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-15 16:44:57.504 ***🔗
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-15 16:44:57.505 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b48ed15a42b346a6' from='localhost' version='1.0' xml:lang='en' to='alice_too_big_stanza_is_rejected_7@localhost'>

*** User 2024-04-15 16:44:57.508 ***🔗
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-15 16:44:57.509 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost out
<iq type='set' id='ab08fe7c56ddfcd42e74c03db2782397'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-15 16:44:57.511 ***🔗
alicE_too_big_stanza_is_rejected_7@localhost in
<iq id='ab08fe7c56ddfcd42e74c03db2782397' 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-15 16:44:57.514 ***🔗
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>4ab2bec1a4dbc3341693d29698311d41174b7573705263158411efd012bfa7ce56e772db72bf59c6932cba9ee7fcc2638375731b543ed82466bd238495c8c213fe317729f6a1254c30fa4ba5139300a31a6260685232297f88b41e3db89c177be6c0393eda4bccfae28483c8c5fef84071e1fddc812aecb01b6943cec57d6471d86b524458f6acc5d82a00e57487c5776de85a46bb4be8b9a440237e1e66cb88c29a18447fe26c0e167ef678a024ac17b47248f4dcb2e8d307ebf6104ef56cca19353138547976a4b8366805e1878c2334daa672c5a32160d4b6d1f945531227799d67b87f1c2bdb9afa51f1d87d89b36353e63472df1cbea5eed6ca258668fa46017d1d16d0aab8bc4cecc4af72f8f1e276218220f013ecf32eda62bc29a64a350e2aa0a2ec6f53d9246544decfb4484221ca8f6dde6f85f53cdebb5c797ffc233670a7bffc42b3eef391ada9223274243ea19ea6985ead9a287f4184d9f26a8e262ad932d690851670c983c1abe78c7179e2c646f1469a07a4361aba23aba11a7e2de91f14eaa63a305e06dba9164fe36a5efe93fd011d6abd18367650f3eed646b74bc8b8e7b4c6781357477b221eddd3305906bd13dbd402345738ca224ffff10283c7155edee40dceed26d13a9e8c2fec600e54e6ba0462b1c24bfcc727addc980fc1fe74eff0c09cea8f4cfd4d712cce8d526051906def8abf6f863c9973d19d75b19919680f6871e8249c43ee99ad9501fe88facaa2be72257e8310f0c82b3d88778b6c188abc51c0ec5e19ad3fe393f55c16116ce33661d2d23ff6cd4910cd6779380ad32d98775b285187b504f9e97790ae7d8f1b4616057177782b03e023d08f7b8fbe59b6cfa74808dc7e8edaab68c38822edacb7b496f5eaec23836eb4a5acfad7ae56abd0ca9bb0a6d3a44338222bfe3029bc5ef2601b11f43c577ebb17f04b8c7b042776d4a57b95fdd5b15e4656b0b7c5f4d4f368dbc4803a6f2211c6e2943ca62bd915b51a2b88db9a4ff36961645fdb3919cc9890bfc559e1648f02e568ca47986c049330c6774da8c10a2b48986f45a0c3df87815bcb29ca58032160ac7fdbd3a4c0b623c6a79b40bec81bad8bb4b1df24b4395cfc22724b212caed1ac460d384b7f47458ee70ef97e70e679f4c2de73ce23476e91b514089849af29d978e2e6b9ab19e06cb860cc984f8dd8afabd401cfaba9b650e8c24fbad2f33d200ace04f25955b77b83faf47e55361c2032bd67b112f4b161508c51b93c70bd824d5ce9f300b4896d0a6863c8dc13691b600dbb586c0e3f1ea5f74462d262a820a81d6098b8bbd905ae5b522bfbfc140f32d3752dedc018275109507610cee885e81855256ad0a20916a1f01495b42f592582684a6274720125ea93343af8c84ab4b7e9114991e35a67b1cd7abae9e37f2fbe25f95a18d75ca363</body>
</message>



*** User 2024-04-15 16:44:57.514 ***🔗
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-15 16:44:57.514 ***🔗
alice_too_big_stanza_is_rejected_7@localhost/escalus-default-resource in
</stream:stream>
*** CT 2024-04-15 16:44:57.519 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_27.html



=== Ended at 2024-04-15 16:44:57
=== successfully completed test case
=== === Returned value: true