[jdev] Problem in adding a group

Ganesh Kundapur ganesh.kundapur at gmail.com
Fri Mar 2 03:09:03 CST 2007


I referred RFC 3921 Section 10, 10.4 and 10.9 for blocking user.
Based on my understanding from the RFC, i sent the fallowing stanzas to
block the user based on JID. I'm getting blocked user on query,
but stil blocked user can send/receive messages ( I verified by sending a
message by using gaim ).
Please correct me if i'm doing wrong in blocking a user.
--
SEND:
-----------------------------------
<?xml version='1.0' encoding='UTF-8'?>
-----------------------------------
SEND:
-----------------------------------
<stream:stream xmlns="jabber:client" xmlns:stream="
http://etherx.jabber.org/streams" to="bhdhcp07392.com" id="71752121033">
-----------------------------------

RECV [186]:
------------------------------------
'<?xml version='1.0'?><stream:stream xmlns:stream='
http://etherx.jabber.org/streams' xmlns='jabber:client' from='
bhdhcp07392.com' id='oxze3k4gtmnf6uhiyf7vgyo5squvgvt4ssjvcob6'>'
------------------------------------

SEND:
-----------------------------------
<iq type="get" id="471041488848"> <query xmlns="jabber:iq:auth">
<username>testlm123</username>
</query>
</iq>

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

RECV [209]:
------------------------------------
'<iq xmlns='jabber:client' id='471041488848' type='result'><query
xmlns='jabber:iq:auth'><username>testlm123</username><resource/><password/><digest/><sequence>499</sequence><token>45DC6B40</token></query></iq>'
------------------------------------

SEND:
-----------------------------------
<iq type="set" id="204815237725"> <query xmlns="jabber:iq:auth">
<username>testlm123</username>
 <digest>aed453e807bf86a8fac009d56013792e7259c11f</digest>
 <resource>hi</resource>
</query>
</iq>

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

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

SEND:
-----------------------------------
<presence id="141384666981"></presence>

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

SEND:
-----------------------------------
<message to="ganesh.kundapur at bhdhcp07392.com" id="141393667101">
<body>List</body>
</message>

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

SEND:
-----------------------------------
<iq type="set" id="141902667241"> <query xmlns="jabber:iq:privacy"> <active
name="BlockedList"></active>
</query>
</iq>

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

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

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" type="jid" jid="
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>

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

RECV [251]:
------------------------------------
'<presence xmlns='jabber:client' to='testlm123 at bhdhcp07392.com/hi' from='
ganesh.kundapur at bhdhcp07392.com/Home'><x xmlns='jabber:x:delay' from='
ganesh.kundapur at bhdhcp07392.com/Home'
stamp='20070301T20:37:52'/></presence>'
------------------------------------

RECV [239]:
------------------------------------
'<presence xmlns='jabber:client' to='testlm123 at bhdhcp07392.com/hi' from='
testlm123 at bhdhcp07392.com/Gaim'><x xmlns='jabber:x:delay' from='
testlm123 at bhdhcp07392.com/Gaim' stamp='20070301T19:56:56'/></presence>'
------------------------------------

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

RECV [244]:
------------------------------------
'<iq xmlns='jabber:client' id='6607167262' type='result'><query
xmlns='jabber:iq:privacy'><list name='BlockedList'><item order='23'
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>
-----------------------------------
--

Even i tried blocking a user without the Active List based on RFC section
10.9, still client
can recieve messages from the blocked user.

Thanks & Regards,
Ganesh

On 3/1/07, Remko Tronçon <remko at el-tramo.be> wrote:
>
> > i'm extremely sorry for that.I'm getting it now, but the problem is that
> i
> > can send/recieve messages
> > even after blocking.
>
> RFC 3921 Section 10.4.
>
> Remko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070302/08ddbb81/attachment-0002.htm>


More information about the JDev mailing list