[ejabberd] privacy lists and order

Yann Leboulanger asterix at lagaule.org
Sat Jan 10 12:18:08 MSK 2009


Hi,

I'm using ejabberd 2.0.1 from debian package, and I'm playing with
privacy lists, but it seems the order attribut is not handled correctly.

When I send this list (order 2 before order 3) it works. I can send
presences to the given JID

<iq type="set" id="28">
<query xmlns="jabber:iq:privacy">
<list name="invisible">
<item action="allow" type="jid" order="2" value="JID">
<presence-out />
</item>
<item action="deny" order="3">
<presence-out />
</item>
</list>
</query>
</iq>

But if I send this one (order 3 before order 2) it doesn't work, JID
don't receive my presences

<iq type="set" id="28">
<query xmlns="jabber:iq:privacy">
<list name="invisible">
<item action="deny" order="3">
<presence-out />
</item>
<item action="allow" type="jid" order="2" value="JID">
<presence-out />
</item>
</list>
</query>
</iq>

Shouldn't both work the same way?
-- 
Yann


More information about the ejabberd mailing list