=== Test case: gdpr_SUITE:dont_remove_other_user_private_xml/1 (click for source code)

=== Config value:

    [{watchdog,<0.13335.0>},
     {protocol,cli},
     {schema_endpoint,admin},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {preset,"ldap_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/gdpr_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@5bbc5a46dfe3.2024-01-15_11.59.33/big_tests.tests.gdpr_SUITE.logs/run.2024-01-15_12.01.11/gdpr_suite.dont_remove_other_user_private_xml.html"},
     {tc_group_properties,[{name,remove_personal_data}]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/gdpr_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@5bbc5a46dfe3.2024-01-15_11.59.33/big_tests.tests.gdpr_SUITE.logs/run.2024-01-15_12.01.11/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,
              ldap =>
                  #{filter => <<"(objectClass=inetOrgPerson)">>,
                    base => <<"ou=Users,dc=esl,dc=com">>,deref => never,
                    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">>]}],
                    pool_tag => default,
                    uids => [{<<"uid">>,<<"%u">>}],
                    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_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">>}],
                    search_operator => 'and',binary_search_fields => []},
              iqdisc => parallel,backend => ldap},
        mod_roster =>
            #{iqdisc => one_queue,backend => mnesia,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@5bbc5a46dfe3.2024-01-15_11.59.33"

=== Started at 2024-01-15 12:01:20


*** CT 2024-01-15 12:01:20.163 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_1505.html

*** User 2024-01-15 12:01:20.169 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-01-15 12:01:20.169 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e36552a969c2eb7' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-01-15 12:01:20.170 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:features>
	<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='https://www.erlang-solutions.com/products/mongooseim.html' ver='hrrptIuoH3BHt7UccOPi+EUROLc='/>
	<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-01-15 12:01:20.170 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2RvbnRfcmVtb3ZlX290aGVyX3VzZXJfcHJpdmF0ZV94bWxfNjEzAG1hdHlncnlzYQ==</auth>



*** User 2024-01-15 12:01:20.171 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-01-15 12:01:20.171 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-01-15 12:01:20.171 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c1d644c38cc8943' from='localhost' version='1.0' xml:lang='en' to='alice_dont_remove_other_user_private_xml_613@localhost'>

*** User 2024-01-15 12:01:20.172 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='https://www.erlang-solutions.com/products/mongooseim.html' ver='hrrptIuoH3BHt7UccOPi+EUROLc='/>
	<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-01-15 12:01:20.172 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 out
<iq type='set' id='62ab5d7495f13ca59cf63c224a4b4603'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-01-15 12:01:20.172 ***🔗
alicE_dont_remove_other_user_private_xml_613@localhost/res1 in
<iq id='62ab5d7495f13ca59cf63c224a4b4603' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_dont_remove_other_user_private_xml_613@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-01-15 12:01:20.172 ***🔗
alice_dont_remove_other_user_private_xml_613@localhost/res1 out
<iq type='set' id='baeb50851aff6e3ba7000d2ddba8d176'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-15 12:01:20.172 ***🔗
alice_dont_remove_other_user_private_xml_613@localhost/res1 in
<iq from='localhost' to='alice_dont_remove_other_user_private_xml_613@localhost/res1' id='baeb50851aff6e3ba7000d2ddba8d176' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-15 12:01:20.172 ***🔗
alice_dont_remove_other_user_private_xml_613@localhost/res1 out
<presence/>



*** User 2024-01-15 12:01:20.173 ***🔗
alice_dont_remove_other_user_private_xml_613@localhost/res1 in
<presence from='alice_dont_remove_other_user_private_xml_613@localhost/res1' to='alice_dont_remove_other_user_private_xml_613@localhost/res1'/>



*** User 2024-01-15 12:01:20.174 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-01-15 12:01:20.174 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='073083ad6d7325b3' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-01-15 12:01:20.174 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:features>
	<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='https://www.erlang-solutions.com/products/mongooseim.html' ver='hrrptIuoH3BHt7UccOPi+EUROLc='/>
	<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-01-15 12:01:20.174 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9kb250X3JlbW92ZV9vdGhlcl91c2VyX3ByaXZhdGVfeG1sXzYxMwBtYWtyb2xpa2E=</auth>



*** User 2024-01-15 12:01:20.175 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-01-15 12:01:20.176 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-01-15 12:01:20.176 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1176cf4ac93f2fd4' from='localhost' version='1.0' xml:lang='en' to='bob_dont_remove_other_user_private_xml_613@localhost'>

*** User 2024-01-15 12:01:20.176 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='https://www.erlang-solutions.com/products/mongooseim.html' ver='hrrptIuoH3BHt7UccOPi+EUROLc='/>
	<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-01-15 12:01:20.176 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 out
<iq type='set' id='d653d7a78856380ed1ef08a98f697c95'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-01-15 12:01:20.176 ***🔗
bOb_dont_remove_other_user_private_xml_613@localhost/res1 in
<iq id='d653d7a78856380ed1ef08a98f697c95' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_dont_remove_other_user_private_xml_613@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-01-15 12:01:20.176 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 out
<iq type='set' id='f18425e88503a63ca9e57364277b339f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-15 12:01:20.177 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 in
<iq from='localhost' to='bob_dont_remove_other_user_private_xml_613@localhost/res1' id='f18425e88503a63ca9e57364277b339f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-01-15 12:01:20.177 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 out
<presence/>



*** User 2024-01-15 12:01:20.178 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 in
<presence from='bob_dont_remove_other_user_private_xml_613@localhost/res1' to='bob_dont_remove_other_user_private_xml_613@localhost/res1'/>



*** User 2024-01-15 12:01:20.178 ***🔗
alice_dont_remove_other_user_private_xml_613@localhost/res1 out
<iq type='set' id='c3068ea9154a8e36b5e3ba0dcefbca01'>
	<query xmlns='jabber:iq:private'>
		<fingerprint xmlns='alice:private:ns'>To be or not to be</fingerprint>
	</query>
</iq>



*** User 2024-01-15 12:01:20.179 ***🔗
alice_dont_remove_other_user_private_xml_613@localhost/res1 in
<iq from='alice_dont_remove_other_user_private_xml_613@localhost' to='alice_dont_remove_other_user_private_xml_613@localhost/res1' id='c3068ea9154a8e36b5e3ba0dcefbca01' type='result'>
	<query xmlns='jabber:iq:private'>
		<fingerprint xmlns='alice:private:ns'>To be or not to be</fingerprint>
	</query>
</iq>



*** User 2024-01-15 12:01:20.179 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 out
<iq type='set' id='15f273de3391da54dc3dd83facab85bb'>
	<query xmlns='jabber:iq:private'>
		<fingerprint xmlns='bob:private:ns'>This is the winter of our discontent</fingerprint>
	</query>
</iq>



*** User 2024-01-15 12:01:20.180 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 in
<iq from='bob_dont_remove_other_user_private_xml_613@localhost' to='bob_dont_remove_other_user_private_xml_613@localhost/res1' id='15f273de3391da54dc3dd83facab85bb' type='result'>
	<query xmlns='jabber:iq:private'>
		<fingerprint xmlns='bob:private:ns'>This is the winter of our discontent</fingerprint>
	</query>
</iq>



*** User 2024-01-15 12:01:20.445 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  account removeUser --user alice_dont_remove_other_user_private_xml_613@localhost/res1
Result "{\n  \"data\" : {\n    \"account\" : {\n      \"removeUser\" : {\n        \"message\" : \"User alice_dont_remove_other_user_private_xml_613@localhost/res1 successfully unregistered\",\n        \"jid\" : \"alice_dont_remove_other_user_private_xml_613@localhost/res1\"\n      }\n    }\n  }\n}\n"
ExitStatus 0

*** User 2024-01-15 12:01:20.445 ***🔗
ResultString:
{
  "data" : {
    "account" : {
      "removeUser" : {
        "message" : "User alice_dont_remove_other_user_private_xml_613@localhost/res1 successfully unregistered",
        "jid" : "alice_dont_remove_other_user_private_xml_613@localhost/res1"
      }
    }
  }
}


*** System report during gdpr_SUITE:dont_remove_other_user_private_xml/1 in remove_personal_data 2024-01-15 12:01:20.446 ***🔗
=ERROR REPORT==== 15-Jan-2024::12:01:20.446430 ===
    reason: function_clause
    text: <<"Error running hook">>
    handler: {hook_handler,50,fun mod_vcard:get_personal_data/3,
                           #{host_type => <<"localhost">>,
                             hook_name => get_personal_data,
                             hook_tag => <<"localhost">>}}
    stacktrace: [{exml,to_iolist,
                     [[],not_pretty],
                     [{file,
                          "/home/circleci/project/_build/default/lib/exml/src/exml.erl"},
                      {line,112}]},
                 {exml,to_binary,1,
                     [{file,
                          "/home/circleci/project/_build/default/lib/exml/src/exml.erl"},
                      {line,90}]},
                 {mod_vcard,get_personal_data,3,
                     [{file,"/home/circleci/project/src/vcard/mod_vcard.erl"},
                      {line,110}]},
                 {gen_hook,apply_hook_function,3,
                     [{file,"/home/circleci/project/src/gen_hook.erl"},
                      {line,251}]},
                 {gen_hook,run_hook,4,
                     [{file,"/home/circleci/project/src/gen_hook.erl"},
                      {line,237}]},
                 {mongoose_hooks,run_fold,4,
                     [{file,
                          "/home/circleci/project/src/hooks/mongoose_hooks.erl"},
                      {line,1440}]},
                 {erpc,execute_call,4,[{file,"erpc.erl"},{line,589}]}]
    params: #{jid =>
                  {jid,<<"alice_dont_remove_other_user_private_xml_613">>,
                       <<"localhost">>,<<>>}}
    key: {get_personal_data,<<"localhost">>}
    what: hook_failed
    acc: [{roster,["jid","name","subscription","ask","groups","askmessage",
                   "xs"],
                  []}]
    class: error


*** User 2024-01-15 12:01:20.447 ***🔗
waiting for timeout is done in 0 miliseconds

*** User 2024-01-15 12:01:20.768 ***🔗
Execute /home/circleci/project/_build/mim1/rel/mongooseim/bin/mongooseimctl  gdpr retrievePersonalData --domain localhost --resultFilepath dont_remove_other_user_private_xml.1705320080447959005.zip --username bob_dont_remove_other_user_private_xml_613
Result "{\n  \"data\" : {\n    \"gdpr\" : {\n      \"retrievePersonalData\" : \"Data retrieved\"\n    }\n  }\n}\n"
ExitStatus 0

*** User 2024-01-15 12:01:20.768 ***🔗
ResultString:
{
  "data" : {
    "gdpr" : {
      "retrievePersonalData" : "Data retrieved"
    }
  }
}


*** User 2024-01-15 12:01:20.768 ***🔗
extracting logs dont_remove_other_user_private_xml.1705320080447959005.zip.bob_dont_remove_other_user_private_xml_613.unzipped

*** User 2024-01-15 12:01:20.769 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 out
</stream:stream>

*** User 2024-01-15 12:01:20.770 ***🔗
bob_dont_remove_other_user_private_xml_613@localhost/res1 in
</stream:stream>
*** CT 2024-01-15 12:01:20.774 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_1507.html



=== Ended at 2024-01-15 12:01:20
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result