AnsweredAssumed Answered

StreamInitiationProvider generates incorrect IQ stanza

Question asked by Jeffrey Ma on Aug 12, 2014
Latest reply on Aug 17, 2014 by Jeffrey Ma

Hi,

 

When I invoke the FileTransferNegotiator's negotiateOutgoingTransfer method, I notice that the end tag and the start tag <option> does not match in the IQ Stanza. Does anyone encounter the same issue? I am using asmack-android-8-4.0.2.jar for development. Here is the log:

 

08-13 11:23:10.185: D/SMACK(23007): SENT (0):

<iq id='F70nn-5' to=‘sender@server/Smack' type='set'>

<si xmlns="http://jabber.org/protocol/si" id="jsi_3472388562488015140" mime-type="image/jpeg" profile="http://jabber.org/protocol/si/profile/file-transfer">

<file xmlns="http://jabber.org/protocol/si/profile/file-transfer" name="TESTING.JPG" size="1941792" >

<desc>testing</desc>

</file>

<feature xmlns="http://jabber.org/protocol/feature-neg">

<x xmlns='jabber:x:data' type='form'>

<field var='stream-method' type='list-single'>

<option>

<value>http://jabber.org/protocol/bytestreams</value>

</field>

<option>

<value>http://jabber.org/protocol/ibb</value>

</field>

</field>

</x>

</feature>

</si>

</iq>

 

Thanks.

Outcomes