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.127.0.0.1" to="demo2@127.0.0.1/smackbot"><offer xmlns="http://jabber.org/protocol/workgroup" id="deh9q452" jid="67392482@127.0.0.1/67392482"><metadata xmlns="http://jivesoftware.com/protocol/workgroup"><value name="userID">cqvUzAtRuD</value><value name="username">Visitor</value><value name="email">Not Specified</value><value name="workgroup">dev@workgroup.127.0.0.1</value><value name="Location">http://openfire.orangeuce.com:9090/webchat/</value><value name="referer">http://openfire.orangeuce.com:9090/webchat/userinfo.jsp?chatID=w2x1b3V38T&workgr oup=dev@workgroup.127.0.0.1</value></metadata><timeout>20</timeout><session xmlns="http://jivesoftware.com/protocol/workgroup" id="deh9q452" workgroup="dev@workgroup.127.0.0.1"/><user-request/><user xmlns="http://jivesoftware.com/protocol/workgroup" id="cqvUzAtRuD"/></offer></iq>

 

11:56:36 AM SENT (0): <iq to='dev@workgroup.127.0.0.1' 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.127.0.0.1' 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.

Outcomes