[Standards] XEP-0050: feature-tag in query-tag: yes or no?

Peter Saint-Andre stpeter at jabber.org
Mon Apr 16 11:23:18 CDT 2007


Tobias Markmann wrote:
> Hi,
> 
> To retrieve the list of provided commands you normally query in the XML 
> namespace "http://jabber.org/protocol/disco#items 
> <http://jabber.org/protocol/disco#items>". But what has a client to 
> return on " http://jabber.org/protocol/disco#info"?
> 
> See the following examples.
> 
> Example 1 (gloox):
> 
>     SEND
>     <iq id='29'
>         to='tobiasfar at jabber.org/bot <http://tobiasfar@jabber.org/bot>'
>         type='get'
>         xml:lang='de-DE'>
>       <query xmlns=' http://jabber.org/protocol/disco#info'
>         node='http://jabber.org/protocol/commands'/
>     <http://jabber.org/protocol/commands%27/>>
>     </iq>
> 
> 
>     RECV
>     <iq from='tobiasfar at jabber.org/bot <http://tobiasfar@jabber.org/bot>'
>         to=' tobiasfar at jabber.org/home <http://tobiasfar@jabber.org/home>'
>         xml:lang='en'
>         id='29'
>         type='result'>
>       <query xmlns='http://jabber.org/protocol/disco#info'
>     <http://jabber.org/protocol/disco#info%27>>
>         <identity category='automation'
>         type='command-list'
>         name='Ad-Hoc Commands'/>
>         <feature var=' http://jabber.org/protocol/commands'/
>     <http://jabber.org/protocol/commands%27/>>
>       </query>
>     </iq>
> 
> 
> Example 2 (Tkabber)
> 
>     SEND
>     SAME AS IN EXAMPLE 1 BUT ANOTHER TAG ID
> 
> 
>      RECV
>     <iq id='35'
>         to='tobiasfar at jabber.org/home <http://tobiasfar@jabber.org/home>'
>         type='result'
>         xml:lang='de-DE'>
>       <query xmlns=' http://jabber.org/protocol/disco#info'
>         node='http://jabber.org/protocol/commands'
>     <http://jabber.org/protocol/commands%27>>
>         <identity category='automation'
>         type='command-list'
>         name='Fernsteuerung'/>
>       </query>
>     </iq>
> 
> 
> Example 3 (Psi)
> 
>     SEND
>     SAME AS IN EXAMPLE 1 BUT ANOTHER TAG ID
> 
> 
>     RECV
>     <iq from=' tobiasfar at jabber.org/psi <http://tobiasfar@jabber.org/psi>'
>         to=' tobiasfar at jabber.org/home <http://tobiasfar@jabber.org/home>'
>         xml:lang='en'
>         type='result'
>         id='49'>
>       <query xmlns='http://jabber.org/protocol/disco#info'/
>     <http://jabber.org/protocol/disco#info%27/>>
>     </iq>
> 
> 
> 
> You see all three send different answers but gloox includes a <feature/> 
> tag and Tkabber and Psi don't.
> 
> Are all three versions valid according to XEP-0050 and its dependences?

According to XEP-0030:

1. A disco#info result MUST include at least one <identity/> element. 
Example 3 violates this rule.

2. A disco#info result MUST include a <feature/> for at least the 
disco#info namespace itself. Examples 1, 2, and 3 violate this rule.

3. A disco#info result SHOULD include other supported features, which in 
this case includes the http://jabber.org/protocol/commands namepsace. 
Examples 2 and 3 violate this rule.

/psa


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.jabber.org/pipermail/standards/attachments/20070416/b55a615e/smime.bin


More information about the Standards mailing list