AnsweredAssumed Answered

addExtension on Iq serialised 2x

Question asked by andrejvanderzee on Jun 24, 2015
Latest reply on Jun 24, 2015 by andrejvanderzee

Hi,

 

When I define a very basic IQ stanza and add an RSMSet extension, it is serialized two times:

 

Query query = new Query("queryId");

RSMSet rsmSet = new RSMSet(20);

query.addExtension(rsmSet);

System.out.println(query.toXML().toString());

 

Will produce the following String with two RSMSets in it:

 

<?xml version="1.0"?>

<iq to="47ef0f9517ec4eeeae7b4445dcd1ba55@im.fansz.com" id="rHWFt-23" type="set">

  <query xmlns="urn:xmpp:mam:0" queryid="a69ujlu3i0g0">

    <set xmlns="http://jabber.org/protocol/rsm">

      <max>20</max>

    </set>

    <set xmlns="http://jabber.org/protocol/rsm">

      <max>20</max>

    </set>

  </query>

</iq>

Outcomes