[standards-jig] JEP-78 incompatibility with XMPP

Jacek Konieczny jajcus at bnet.pl
Thu May 29 07:57:54 UTC 2003


Hello,

JEP-78 includes following example:

 <iq type='error' from='shakespeare.lit' id='auth2'/>
   <query xmlns='jabber:iq:auth'>
     <username>bill</username>
     <password>Clio</password>
     <resource>globe</resource>
   </query>
   <error code='401' class='app'>
     <auth-condition xmlns='jabber:iq:auth:error'>
       <user-unauthorized/>
     </auth-condition>
   </error>
 </iq>

However http://www.jabber.org/ietf/draft-ietf-xmpp-core-12.html says:

    7.7 Stanza Errors

	[...]

    7.7.2 Syntax

	[...]

   The value of the 'class' attribute MUST be one of the following:

     * access -- the condition relates to access rights, permissions, or authorization
     * address -- the condition relates to the JID or domain to which the stanza was addressed
     * format -- the condition relates to XML format or structure
     * recipient -- the condition relates to the state or capabilities of the recipient (which
       may be the server)
     * server -- the condition relates to the internal state of the server

   The <condition/> element MUST contain a child element that specifies a particular
   stanza-related error condition, and its namespace name MUST be
   'urn:ietf:params:xml:ns:xmpp-stanzas', which adheres to the format defined in The IETF XML
   Registry[25].

So the example should look like this:

 <iq type='error' from='shakespeare.lit' id='auth2'/>
   <query xmlns='jabber:iq:auth'>
     <username>bill</username>
     <password>Clio</password>
     <resource>globe</resource>
   </query>
   <error code='401' class='access'>
     <condition xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>
       <user-unauthorized xmlns='jabber:iq:auth:error'/>
     </condition>
   </error>
 </iq>

Thera are similar problems with other error examples.

Greets,
	Jacek



More information about the Standards mailing list