0 Replies Latest reply on Jul 20, 2017 9:46 AM by Da

    BUG? Message dropped in presence subscription request when the other user is offline

    Da

      Example packets are shown below. When A sends a subscription request to an offline user B, the message within the request gets dropped by Openfire automatically. Did anyone else recognize this? I saw in discussion https://community.igniterealtime.org/message/235121#comment-235121 someone else mentioned the same thing. Is there a way around? or a better implementation of the friend request?

       

      Scenario:

      1. There are users A and B.

       

      2. While B is offline, A sends a presence subscription to B with a message "Hi".

      <packet xmlns="http://www.jivesoftware.org" streamID="xxxxxxx" status="auth" timestamp="Jul 20, 2017 11:05:51:578 AM"><presence xmlns="" type="subscribe" to="B" id="MX_19" from="A"><status>Hi</status></presence></packet>

       

      3. When B comes back online, he receives the subscription request but with no message.

      <packet xmlns="http://www.jivesoftware.org" streamID="xxxxxxx" status="auth" timestamp="Jul 20, 2017 11:13:02:582 AM"><presence xmlns="" from="A"><status/><priority>0</priority></presence></packet><packet xmlns="http://www.jivesoftware.org" streamID="xxxxxxx" status="auth" timestamp="Jul 20, 2017 11:13:02:591 AM"><presence xmlns="" from="A" to="B" type="subscribe"/></packet>

       

      if B was online when A sends out the subscription request

      <packet xmlns="http://www.jivesoftware.org" streamID="xxxxxxx" status="auth" timestamp="Jul 20, 2017 11:05:51:597 AM"><presence xmlns="" type="subscribe" to="B" id="MX_19" from="A"><status>Hi</status></presence></packet>