ejabberd - Comments for "[2.0.5] changing of username with shared roster makes the user appear offline" https://www.ejabberd.im/node/3747 en Same problem, try patch https://www.ejabberd.im/node/3747#comment-54904 <p>I tried with ejabberd 2.0.5 and Tkabber SVN. I get your same problem, and ejabberd reports this error:</p> <pre> =ERROR REPORT==== 16-Nov-2009::17:20:55 === E(&lt;0.592.0&gt;:ejabberd_hooks:205) : {undef, [{mod_roster,item_to_xml, [{roster, {"badlop44","localhost", {"badlop","localhost",[]}}, {"badlop44","localhost"}, {"badlop","localhost",[]}, "Bad LOP",both,none, ["aaaaa"], [],[]}]}, {mod_shared_roster,set_item,4}, {mod_shared_roster,set_new_rosteritems,7}, {ejabberd_hooks,run_fold1,4}, {mod_roster,'-process_item_set/3-fun-0-', 6}, {mnesia_tm,apply_fun,3}, {mnesia_tm,execute_transaction,5}, {mod_roster,process_item_set,3}]} running hook: {roster_process_item,["localhost"]} </pre><p> I applied this simple patch:</p> <pre> --- a/src/mod_shared_roster.erl +++ b/src/mod_shared_roster.erl @@ -264,7 +264,7 @@ set_item(User, Server, Resource, Item) -&gt; id = "push" ++ randoms:get_string(), sub_el = [{xmlelement, "query", [{"xmlns", ?NS_ROSTER}], - [mod_roster:item_to_xml(Item)]}]}, + [item_to_xml(Item)]}]}, ejabberd_router:route( jlib:make_jid(User, Server, Resource), jlib:make_jid("", Server, ""), </pre><p>With that, the problem is solved in ejabberd 2.0.5.</p> <p>I also tried in ejabberd 2.1.0 and the problem doesn't appear in that version.</p> Mon, 16 Nov 2009 16:28:22 +0000 mfoss comment 54904 at https://www.ejabberd.im