[Standards-JIG] Multiple groups question.

Etan Reisner deryni at eden.rutgers.edu
Fri Feb 3 22:56:09 UTC 2006


On Fri, 3 Feb 2006, Peter Saint-Andre wrote:

> Etan Reisner wrote:
>> In working out a bug someone was seeing today we discovered that their
>> roster had ended up with an item like this in it.
>>
>> <item jid='foo at example.com'
>> subscription='both'><group>Work</group><group>Work</group></item>
>
> This scenario is not covered by any of the existing specs.
>
> I would recommend that the client do a string compare on the group names
> to make sure there are no duplicates; if there are duplicates, show the
> item only once in that group.
>
> I'd also recommend that the server should not accept a roster set with
> duplicate groups (do the same string compare, return <bad-request/> if
> there are duplicates).
>
> Just because the group names are opaque doesn't mean the server and
> client can't compare them. :-)
>
> My $0.02.
>
> Peter

Ok, that's about what we ended up with in our discussion. I just wasn't 
certain how opaque 'opaque' actually meant.

Can this get put into writing somewhere? Even just as a suggestion for 
clients in 0162 would be useful.

 	-Etan



More information about the Standards mailing list