AnsweredAssumed Answered

Invalid response to OfferRequestPacket

Question asked by temppost2 on May 17, 2015
Latest reply on May 18, 2015 by temppost2

I'm currently using smack API 4.1.1 (particularly smack-legacy-4.1.1 with workgroup API).

When OfferRequestPacket is received smack responds to it with the following packets:

11:56:36 AM RECV (0): <iq type="set" id="649-291" from="dev@workgroup." to="demo2@"><offer xmlns="" id="deh9q452" jid="67392482@"><metadata xmlns=""><value name="userID">cqvUzAtRuD</value><value name="username">Visitor</value><value name="email">Not Specified</value><value name="workgroup">dev@workgroup.</value><value name="Location"></value><value name="referer"> oup=dev@workgroup.</value></metadata><timeout>20</timeout><session xmlns="" id="deh9q452" workgroup="dev@workgroup."/><user-request/><user xmlns="" id="cqvUzAtRuD"/></offer></iq>


11:56:36 AM SENT (0): <iq to='dev@workgroup.' id='649-291' type='error'><error type='cancel'><feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>


11:56:36 AM SENT (0): <iq to='dev@workgroup.' id='649-291' type='result'></iq>

IQ with type ERROR is sent because there is no registered IQRequestHandler for such packets (see source code of AbstractXMPPConnection#invokePacketCollectorsAndNotifyRecvListeners).


IQ with type RESULT is sent because there is one registered asyncRecvListener (org.jivesoftware.smackx.workgroup.agent.AgentSession listens for OfferRequestPacket).


IQ with type ERROR must not be send. Please, confirm and create issue in your bugtracker for this.


P.S. The same situation appears with OfferRevokePacket.