Ganesh Kundapur | 1 Mar 09:52
Picon

Problem in adding a group

Hi all,
    I wanted to know wheather is it possible to add only groups without any jid's by sending the fallowing stanza

<iq type="set" id="311432316575"> <query xmlns="jabber:iq:roster">
 <item>
    <group>myfreinds</group>
    <group>Family</group>  
 </item>
</query>
</iq>

If i send the above stanza, I'm getting the fallowing error message from the server
--
<iq xmlns='jabber:client' id='311432316575' type='error'> <error type='modify' code='400'><bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><query xmlns='jabber:iq:roster'> <item> <group>myfreinds</group>
 <group>Family</group> 
</item>
</query>
</iq>

Is there any way to add only groups and is it possible to create a new contact list ( roster ) in jabber?

Regards,
Ganesh

Norman Rasmussen | 1 Mar 09:59
Picon
Favicon
Gravatar

Re: Problem in adding a group

I'm not sure you can have empty groups in a roster.....

On 3/1/07, Ganesh Kundapur <ganesh.kundapur <at> gmail.com> wrote:
> Hi all,
>     I wanted to know wheather is it possible to add only groups without any
> jid's by sending the fallowing stanza
>
> <iq type="set" id="311432316575"> <query xmlns="jabber:iq:roster">
>  <item>
>     <group>myfreinds</group>
>     <group>Family</group>
>  </item>
> </query>
> </iq>
>
> If i send the above stanza, I'm getting the fallowing error message from the
> server
> --
> <iq xmlns='jabber:client' id='311432316575' type='error'> <error
> type='modify' code='400'><bad-request
> xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><query
> xmlns='jabber:iq:roster'> <item> <group>myfreinds</group>
>  <group>Family</group>
> </item>
> </query>
> </iq>
>
> Is there any way to add only groups and is it possible to create a new
> contact list ( roster ) in jabber?
>
> Regards,
>  Ganesh
>

--

-- 
- Norman Rasmussen
 - Email: norman <at> rasmussen.co.za
 - Home page: http://norman.rasmussen.co.za/

Jakob Schroeter | 1 Mar 10:00
X-Face
Favicon

Re: Problem in adding a group

On Thu Mar 1 2007, Ganesh Kundapur wrote:
> Hi all,
>     I wanted to know wheather is it possible to add only groups without any
> jid's by sending the fallowing stanza

The jid attribute is required by the schema.

> Is there any way to add only groups and is it possible to create a new
> contact list ( roster ) in jabber?

I don't think so. There usually is exactly one roster per user.

cheers,
Jakob
Remko Tronçon | 1 Mar 10:16
Picon
Favicon
Gravatar

Re: Problem in adding a group

> Is there any way to add only groups

No. A group can only exist if it has contacts.

> and is it possible to create a new contact list ( roster ) in jabber?

The short answer has already been given: there is only one roster per
user. However, there are some ongoing discussions about distributed
rosters / communities / ...

Why are you asking?

cheers,
Remko

Ganesh Kundapur | 1 Mar 10:55
Picon

Re: Problem in adding a group

I'm studying XMPP protocol, so only asked.

Thanks for clarifying....

On 3/1/07, Remko Tronçon <remko <at> el-tramo.be > wrote:
> Is there any way to add only groups

No. A group can only exist if it has contacts.

> and is it possible to create a new contact list ( roster ) in jabber?

The short answer has already been given: there is only one roster per
user. However, there are some ongoing discussions about distributed
rosters / communities / ...

Why are you asking?

cheers,
Remko

Ganesh Kundapur | 1 Mar 11:18
Picon

Re: Problem in adding a group

If thats the case, howcome gaim allows creating a empty groups?

On 3/1/07, Remko Tronçon <remko <at> el-tramo.be> wrote:
> Is there any way to add only groups

No. A group can only exist if it has contacts.

> and is it possible to create a new contact list ( roster ) in jabber?

The short answer has already been given: there is only one roster per
user. However, there are some ongoing discussions about distributed
rosters / communities / ...

Why are you asking?

cheers,
Remko

Remko Tronçon | 1 Mar 11:24
Picon
Favicon
Gravatar

Re: Problem in adding a group

> If thats the case, howcome gaim allows creating a empty groups?

Gaim supports other protocols as well, not only Jabber. It is possible
that other protocols (such as MSN) allow you to create groups without
contacts. Jabber, however, does not, so if you only have a Jabber
account on Gaim, creating an empty group should have no (lasting)
effect.

cheers,
Remko

Ganesh Kundapur | 1 Mar 11:30
Picon

Re: Problem in adding a group

Ok, i got it.
Sometime back i asked a question on blocking and unblocking a user, but i didnt get a proper answer for that. Could you please ....
here is my question

I tried to block a user by sending the fallowing stanza.
--
SEND:
-----------------------------------
<iq type="set" id="41221701208"> <query xmlns="jabber:iq:privacy"> <list
name="Example"> <item order="3" action="deny" group="myfriends" jid="
ganesh.kundapur at bhdhcp07392.com" xmlns="jabber:iq:privacy">
<message></message>
</item>
</list>
</query>
</iq>
--
When i retrive the privacy list, its showing empty.
--
SEND:
-----------------------------------
<iq type="get" id="50219706223"> <query xmlns="jabber:iq:privacy"> <list
name="Example"></list>
</query>
</iq>

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

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

RECV [178]:
-----------------------------------
'<iq xmlns='jabber:client' id='50219706223' type='result'><query
xmlns='jabber:iq:privacy'><list name='Example'><item order='3'
action='deny'><message/></item></list></query></iq>'
-----------------------------------

SEND:
-----------------------------------
</stream:stream>
-----------------------------------
--
When i retrive the privacy lists, server sends only privacy lists without the blocked users
privacy list is not showing the blocked user. Even user will recieve the
message from the blocked user after blocking also.

On 3/1/07, Remko Tronçon <remko <at> el-tramo.be> wrote:
> If thats the case, howcome gaim allows creating a empty groups?

Gaim supports other protocols as well, not only Jabber. It is possible
that other protocols (such as MSN) allow you to create groups without
contacts. Jabber, however, does not, so if you only have a Jabber
account on Gaim, creating an empty group should have no (lasting)
effect.

cheers,
Remko

Remko Tronçon | 1 Mar 11:52
Picon
Favicon
Gravatar

Re: Problem in adding a group

>  I tried to block a user by sending the fallowing stanza.

Your <item> is incorrect: it does not contain a 'type' or 'value'
attribute, yet it contains 'group' and 'jid' attributes (which are not
allowed). Please check RFC3921 Section 10 for the correct format.

cheers,
Remko

Remko Tronçon | 1 Mar 11:56
Picon
Favicon
Gravatar

Re: Problem in adding a group

> Your <item> is incorrect: it does not contain a 'type' or 'value'
> attribute, yet it contains 'group' and 'jid' attributes (which are not
> allowed). Please check RFC3921 Section 10 for the correct format.

I notice other people have replied to your question back then with the
exact same answer. Please read the answers on your posts before
re-posting, or people will stop helping you.

cheers,
Remko


Gmane