[Standards-JIG] Incorrect stanza error in rfc3920 example?

Gaston Dombiak gaston at jivesoftware.com
Fri Sep 2 23:02:06 UTC 2005

While doing resource binding the new resource may not be processed by the 
server since it may not be in accordance with Resourceprep. In the example a 
bad-request stanza error is used but after reading the stanza errors section 
(9.3) I think that a jid-malformed error would be more appropriate.

This is the example:
Resource identifier cannot be processed:

<iq type='error' id='bind_2'>
  <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
  <error type='modify'>
    <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>

This is the jid-malformed definition:
<jid-malformed/> -- the sending entity has provided or communicated an XMPP 
address (e.g., a value of the 'to' attribute) or aspect thereof (e.g., a 
resource identifier) that does not adhere to the syntax defined in 
Addressing SchemeAddressing Scheme; the associated error type SHOULD be 

So which error condition should be returned?


  -- Gato 

More information about the Standards mailing list