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

Gaston Dombiak gaston at jivesoftware.com
Fri Sep 2 18:02:06 CDT 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'>
    <resource>someresource</resource>
  </bind>
  <error type='modify'>
    <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
  </error>
</iq>

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 
"modify".

So which error condition should be returned?

Thanks,

  -- Gato 






More information about the Standards-JIG mailing list