[jdev] Problem in adding a group

Ganesh Kundapur ganesh.kundapur at gmail.com
Fri Mar 2 04:55:18 CST 2007


Its pasting mistake of mine.
I removed the jid and name part and blocked till the server sends response.
Stil client can receive messages from the blocked user.
Moreover if i set the action="allow", still the privacy list contains the
blocked user.

--
SEND:
-----------------------------------
<iq type="set" id="399421407678"> <query xmlns="jabber:iq:privacy"> <list
name="BlockedList"> <item order="3" action="deny" value="
ganesh.kundapur at bhdhcp07392.com" type="jid"> <message></message>
</item>
</list>
</query>
</iq>

-----------------------------------

RECV [59]:
------------------------------------
'<iq xmlns='jabber:client' id='399421407678' type='result'/>'
------------------------------------

SEND:
-----------------------------------
<iq type="get" id="208443682"> <query xmlns="jabber:iq:privacy"> <list
name="BlockedList"></list>
</query>
</iq>

-----------------------------------

RECV [242]:
------------------------------------
'<iq xmlns='jabber:client' id='208443682' type='result'><query
xmlns='jabber:iq:privacy'><list name='BlockedList'><item order='3'
action='deny' value='ganesh.kundapur at bhdhcp07392.com'
type='jid'><message/></item></list></query></iq>'
------------------------------------
Blocked user: ganesh.kundapur at bhdhcp07392.com

SEND:
-----------------------------------
</stream:stream>
-----------------------------------
--

On 3/2/07, Richard Dobson <richard at dobson-i.net> wrote:
>
>
> > SEND:
> > -----------------------------------
> > <iq type="set" id="6562366909"> <query xmlns="jabber:iq:privacy">
> > <list name="BlockedList"> <item order="23" action="deny"
> > value="ganesh.kundapur at bhdhcp07392.com
> > <mailto:ganesh.kundapur at bhdhcp07392.com>" type="jid"
> > jid="ganesh.kundapur at bhdhcp07392.com
> > <mailto:ganesh.kundapur at bhdhcp07392.com>" name="Ganesh Kundapur">
> > <message></message>
> > </item>
> > </list>
> > </query>
> > </iq>
> >
> > -----------------------------------
> >
> > SEND:
> > -----------------------------------
> > <iq type="get" id="6607167262"> <query xmlns="jabber:iq:privacy">
> > <list name="BlockedList"></list>
> > </query>
> > </iq>
>
> I can see two problems here, again you have ignored our feedback and
> included illegal attributes in your item, "jid" and "name" are not
> valid, as Remko has said please check the spec *very carefully* and if
> you continue to ignore our feedback its likely we will stop helping you
> (as what's the point in helping someone if they ignore it). Secondly,
> you are requesting the privacy list before the server has responded
> saying that its updated it, although it will probably work you shouldn't
> really do that as you don't know if your update to the privacy list has
> worked or not.
>
> Richard
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070302/4493b5bd/attachment-0002.htm>


More information about the JDev mailing list