<div><div selected class="netInfoResponseText netInfoText "><pre><div><code class="focusRow subFocusRow "><pre><div><div selected class="netInfoResponseText netInfoText "><pre><code class="wrappedText focusRow"><pre><div><div>
<font face="arial"><span style="white-space:normal">Hi folks,</span></font></div><div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">I have implemented invisibility in my application in accordance with XEP-0126. I'm seeing a strange result, in which after I send a presence as illustrated in Example 2, I get that same presence sent back to the same resource, which as far as I know should not happen, according to the privacy list. Here's the exact sequence, with a brand new user (my client is custom-built, using Strophe):</span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">First I check whether the list exists:</span></font></div><div><font face="arial"><span style="white-space:normal"><br>
</span></font></div><div><font face="arial"><span style="white-space:normal"><body rid='770372865' xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>' sid='7b0fd3da3ba9591227083b787f68aba79a585f3a'><presence type='unavailable' xmlns='jabber:client'/><iq type='get' id='getlist' xmlns='jabber:client'><query xmlns='jabber:iq:privacy'/></iq></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">I get the response saying it doesn't:</span></font></div><div><font face="arial"><span style="white-space:normal"><br>
</span></font></div><div><font face="arial"><span style="white-space:normal"><body xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>'><iq xmlns='jabber:client' from='<a href="mailto:user_8@xmpp.example.com">user_8@xmpp.example.com</a>' to='<a href="http://user_8@xmpp.example.com/18742385261349971717761171">user_8@xmpp.example.com/18742385261349971717761171</a>' id='getlist' type='result'><query xmlns='jabber:iq:privacy'/></iq></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">Then I create the list:</span></font></div><div><font face="arial"><span style="white-space:normal"><br>
</span></font></div><div><font face="arial"><span style="white-space:normal"><body rid='770372866' xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>' sid='7b0fd3da3ba9591227083b787f68aba79a585f3a'><iq type='set' xmlns='jabber:client' id='8406:sendIQ'><query xmlns='jabber:iq:privacy'><list name='invisible'><item action='allow' order='1' type='jid' value='<a href="http://conference.xmpp.example.com">conference.xmpp.example.com</a>'><presence-out/></item><item action='deny' order='2'><presence-out/></item></list></query></iq></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">And I get the confirmation on that:</span></font></div><div><font face="arial"><span style="white-space:normal"><br>
</span></font></div><div><font face="arial"><span style="white-space:normal"><body xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>'><iq xmlns='jabber:client' from='<a href="mailto:user_8@xmpp.example.com">user_8@xmpp.example.com</a>' to='<a href="http://user_8@xmpp.example.com/18742385261349971717761171">user_8@xmpp.example.com/18742385261349971717761171</a>' id='push2816517726' type='set'><query xmlns='jabber:iq:privacy'><list name='invisible'/></query></iq><iq xmlns='jabber:client' from='<a href="mailto:user_8@xmpp.example.com">user_8@xmpp.example.com</a>' to='<a href="http://user_8@xmpp.example.com/18742385261349971717761171">user_8@xmpp.example.com/18742385261349971717761171</a>' id='8406:sendIQ' type='result'/></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">Then I set the list as active:</span></font></div><div><font face="arial"><span style="white-space:normal"><br>
</span></font></div><div><font face="arial"><span style="white-space:normal"><body rid='770372867' xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>' sid='7b0fd3da3ba9591227083b787f68aba79a585f3a'><iq type='set' xmlns='jabber:client' id='8407:sendIQ'><query xmlns='jabber:iq:privacy'><active name='invisible'/></query></iq></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">And I get the confirmation on that:</span></font></div><div><font face="arial"><span style="white-space:normal"><br>
</span></font></div><div><font face="arial"><span style="white-space:normal"><body xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>'><iq xmlns='jabber:client' from='<a href="mailto:user_8@xmpp.example.com">user_8@xmpp.example.com</a>' to='<a href="http://user_8@xmpp.example.com/18742385261349971717761171">user_8@xmpp.example.com/18742385261349971717761171</a>' id='8407:sendIQ' type='result'/></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">Then I send the available presence, according to the spec:</span></font></div><div>
<font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal"><body rid='770372868' xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>' sid='7b0fd3da3ba9591227083b787f68aba79a585f3a'><presence xmlns='jabber:client'/></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">And I get back that same presence, even though I would expect not to:</span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal"><body xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>'><message xmlns='jabber:client' from='<a href="http://xmpp.example.com">xmpp.example.com</a>' to='<a href="mailto:user_8@xmpp.example.com">user_8@xmpp.example.com</a>' type='normal'><subject>Welcome!</subject><body>Welcome to a Jabber service powered by Debian. For information about Jabber visit <a href="http://www.jabber.org">http://www.jabber.org</a></body><delay xmlns='urn:xmpp:delay' from='<a href="http://xmpp.example.com">xmpp.example.com</a>' stamp='2012-10-11T16:08:37Z'>Offline Storage</delay><x xmlns='jabber:x:delay' stamp='20121011T16:08:37'/></message><presence xmlns='jabber:client' from='<a href="http://user_8@xmpp.example.com/18742385261349971717761171">user_8@xmpp.example.com/18742385261349971717761171</a>' to='<a href="http://user_8@xmpp.example.com/18742385261349971717761171'/">user_8@xmpp.example.com/18742385261349971717761171'/</a>></body></span></font></div>
<div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">I'm currently running Ejabberd 2.1.6 on Ubuntu 11.10. What's weird is I have a similar instance set up in another environment, and I'm not seeing the problem there. But I have no idea what the difference could be. Any idea where I might begin to look for this?</span></font></div>
</div><div><font face="arial"><span style="white-space:normal"><br></span></font></div><div><font face="arial"><span style="white-space:normal">thanks,</span></font></div><div><font face="arial"><span style="white-space:normal">Dan</span></font></div>
<div style="font-family:arial;white-space:normal"><br></div></pre></code></pre></div></div></pre></code></div></pre></div></div>