AnsweredAssumed Answered

Instant room causing 404

Question asked by Brian on Jan 28, 2017
Latest reply on Feb 6, 2017 by Brian

I am using Smack 4.2 RC3 to develop an Android application, and testing against Open Fire. If I create a persistent room, things seem to work as expected (other users can join the room and chat). However if I create the room "instant" then other users are able to see the room listed on the server when they query, however they get 404 error when attempting to join. Note that the room creator is able to join and send a groupchat without error.

 

To create the instant room for simplicity, we are using

MultiUserChat.MucCreateConfigFormHandle.makeInstant()

 

Below is the message exchange which seems to line up properly with http://xmpp.org/extensions/xep-0045.html#createroom-instant

 

The only thing that seemed off is the unavailable presence.

 

Please let me know if something else looks wrong in the message exchange below. And if you think the error may be in my code (maybe I missing some necessary step?), in Smack, or perhaps in Open Fire.

 

Thanks,

-Brian

 

01-28 22:27:13.779 22223-23505/testapp I/System.out: 22:27:13 SENT (0): <presence to='satnp4@conference.demo.com/test1' from='test1@demo.com/ANDROID-990004820495921' id='js23j-88'><x xmlns='http://jabber.org/protocol/muc'></x><tak xmlns='urn:xmpp:tak'><uid>ANDROID-990004820495921</uid></tak><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='LQ5Mt1ZvXBszarUYXOp/3ZXxsqM='/></presence>

01-28 22:27:14.039 22223-23506/testapp I/System.out: 22:27:14 RECV (0): <presence to="test1@demo.com/ANDROID-990004820495921" from="satnp4@conference.demo.com/test1" id="js23j-88"><tak xmlns="urn:xmpp:tak"><uid>ANDROID-990004820495921</uid></tak><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="LQ5Mt1ZvXBszarUYXOp/3ZXxsqM="/><x xmlns="http://jabber.org/protocol/muc#user"><item jid="test1@demo.com/ANDROID-990004820495921" affiliation="owner" role="moderator"/><status code="110"/><status code="100"/><status code="201"/></x></presence>

01-28 22:27:14.049 22223-23505/testapp I/System.out: 22:27:14 SENT (0): <iq to='satnp4@conference.demo.com' from='test1@demo.com/ANDROID-990004820495921' id='js23j-90' type='set'><query xmlns='http://jabber.org/protocol/muc#owner'><x xmlns='jabber:x:data' type='submit'></x></query></iq>

01-28 22:27:14.119 22223-23506/testapp I/System.out: 22:27:14 RECV (0): <r xmlns='urn:xmpp:sm:3' />

01-28 22:27:14.119 22223-23505/testapp I/System.out: 22:27:14 SENT (0): <a xmlns='urn:xmpp:sm:3' h='25'/>

01-28 22:27:14.179 22223-23506/testapp I/System.out: 22:27:14 RECV (0): <iq type="result" id="js23j-90" from="satnp4@conference.demo.com" to="test1@demo.com/ANDROID-990004820495921"/>

01-28 22:27:14.199 22223-23505/testapp I/System.out: 22:27:14 SENT (0): <presence to='satnp4@conference.demo.com/test1' from='test1@demo.com/ANDROID-990004820495921' id='js23j-93' type='unavailable'><tak xmlns='urn:xmpp:tak'><uid>ANDROID-990004820495921</uid></tak></presence><r xmlns='urn:xmpp:sm:3'/><presence to='satnp4@conference.demo.com/test1' from='test1@demo.com/ANDROID-990004820495921' id='js23j-92'><x xmlns='http://jabber.org/protocol/muc'></x><tak xmlns='urn:xmpp:tak'><uid>ANDROID-990004820495921</uid></tak><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.igniterealtime.org/projects/smack' ver='LQ5Mt1ZvXBszarUYXOp/3ZXxsqM='/></presence>

01-28 22:27:14.299 22223-23506/testapp I/System.out: 22:27:14 RECV (0): <presence to="test1@demo.com/ANDROID-990004820495921" from="satnp4@conference.demo.com/test1" id="js23j-88" type="unavailable"><tak xmlns="urn:xmpp:tak"><uid>ANDROID-990004820495921</uid></tak><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="LQ5Mt1ZvXBszarUYXOp/3ZXxsqM="/><x xmlns="http://jabber.org/protocol/muc#user"><item jid="test1@demo.com/ANDROID-990004820495921" affiliation="owner" role="none"/><status code="110"/></x></presence>

01-28 22:27:14.309 22223-23505/testapp I/System.out: 22:27:14 SENT (0): <iq to='demo.com' from='test1@demo.com/ANDROID-990004820495921' id='js23j-97' type='get'><query xmlns='http://jabber.org/protocol/disco#info'></query></iq>

01-28 22:27:14.389 22223-23506/testapp I/System.out: 22:27:14 RECV (0): <a xmlns='urn:xmpp:sm:3' h='15' />

01-28 22:27:14.389 22223-23506/testapp I/System.out: 22:27:14 RECV (0): <presence to="test1@demo.com/ANDROID-990004820495921" from="satnp4@conference.demo.com/test1" id="js23j-92"><tak xmlns="urn:xmpp:tak"><uid>ANDROID-990004820495921</uid></tak><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="LQ5Mt1ZvXBszarUYXOp/3ZXxsqM="/><x xmlns="http://jabber.org/protocol/muc#user"><item jid="test1@demo.com/ANDROID-990004820495921" affiliation="owner" role="moderator"/><status code="110"/><status code="100"/><status code="201"/></x></presence>

01-28 22:27:14.469 22223-23506/testapp I/System.out: 22:27:14 RECV (0): <iq type="result" id="js23j-97" from="demo.com" to="test1@demo.com/ANDROID-990004820495921"><query xmlns="http://jabber.org/protocol/disco#info"><identity category="server" name="Openfire Server" type="im"/><identity category="pubsub" type="pep"/><feature var="http://jabber.org/protocol/pubsub#retrieve-default"/><feature var="http://jabber.org/protocol/pubsub#purge-nodes"/><feature var="vcard-temp"/><feature var="http://jabber.org/protocol/pubsub#subscribe"/><feature var="http://jabber.org/protocol/pubsub#subscription-options"/><feature var="http://jabber.org/protocol/pubsub#create-nodes"/><feature var="http://jabber.org/protocol/pubsub#outcast-affiliation"/><feature var="msgoffline"/><feature var="http://jabber.org/protocol/pubsub#get-pending"/><feature var="http://jabber.org/protocol/pubsub#multi-subscribe"/><feature var="http://jabber.org/protocol/pubsub#presence-notifications"/><feature var="urn:xmpp:ping"/><feature var="jabber:iq:register"/><feature var="http://jabber.org/protocol/pubsub#delete-nodes"/><feature var="http://jabber.org/protocol/pubsub#config-node"/><feature var="http://jabber.org/protocol/pubsub#retrieve-items"/><feature var="http://jabber.org/protocol/pubsub#auto-create"/><feature var="http://jabber.org/protocol/disco#items"/><feature var="http://jabber.org/protocol/pubsub#item-ids"/><feature var="http://jabber.org/protocol/pubsub#meta-data"/><feature var="jabber:iq:roster"/><feature var="http://jabber.org/protocol/pubsub#instant-nodes"/><feature var="http://jabber.org/protocol/pubsub#modify-affiliations"/><feature var="http://jabber.org/protocol/pubsub#persistent-items"/><feature var="http://jabber.org/protocol/pubsub#create-and-configure"/><feature var="http://jabber.org/protocol/pubsub"/><feature var="http://jabber.org/protocol/pubsub#publisher-affiliation"/><feature var="http://jabber.org/protocol/pubsub#access-open"/><feature var="http://jabber.org/protocol/pubsub#retrieve-affiliations"/><feature var="jabber:iq:version"/><feature var="http://jabber.org/protocol/pubsub#retract-items"/><feature var="urn:xmpp:time"/><feature var="http://jabber.org/protocol/pubsub#manage-subscriptions"/><feature var="jabber:iq:privacy"/><feature var="jabber:iq:last"/><feature var="http://jabber.org/protocol/commands"/><feature var="http://jabber.org/protocol/offline"/><feature var="urn:xmpp:carbons:2"/><feature var="http://jabber.org/protocol/address"/><feature var="http://jabber.org/protocol/pubsub#publish"/><feature var="http://jabber.org/protocol/pubsub#collections"/><feature var="http://jabber.org/protocol/pubsub#retrieve-subscriptions"/><feature var="http://jabber.org/protocol/disco#info"/><feature var="jabber:iq:private"/><feature var="http://jabber.org/protocol/rsm"/></query></iq>

Outcomes