[Standards] XEP-0033: error handling

Mridul Muralidharan mridul at sun.com
Tue May 1 03:30:21 UTC 2007


Peter Saint-Andre wrote:
> As I was just discussing via IM with badlop (who is working on a Summer 
> of Code project to add extended stanza addressing support to ejabberd), 
> the error handling in XEP-0033 is rather sparse, bordering on unhelpful 
> or even non-existent. For instance if you send a bunch of addresses and 
> even one of them is unreachable, you receive back from the multicast 
> service a <forbidden/> error (?!?) with no indication about which 
> address(es) caused the problem. I suggest something like the following 
> would be more helpful:
> 
> <message from='header1.org' to='a at header1.org/work' type='error'>
>    <addresses xmlns='http://jabber.org/protocol/address'>
>      <address type='to'  jid='to at header1.org'/>
>      <address type='cc'  jid='cc at header1.org'/>
>      <address type='bcc' jid='bcc at header1.org'/>
>      <address type='to'  jid='to at header2.org'/>
>      <address type='cc'  jid='cc at header2.org'/>
>      <address type='bcc' jid='bcc at header2.org'/>
>      <address type='to'  jid='to at noheader.org'/>
>      <address type='cc'  jid='cc at noheader.org'/>
>      <address type='bcc' jid='bcc at noheader.org'/>
>    </addresses>
>    <body>Hello, World!</body>
>    <error type='modify'>
>      <item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
>      <unreachable xmlns='http://jabber.org/protocol/address#errors'>
>        <address type='to'  jid='to at noheader.org'/>
>        <address type='cc'  jid='cc at noheader.org'/>
>        <address type='bcc' jid='bcc at noheader.org'/>
>      </unreachable>
>    </error>

Hi,

   Do we need to include the type also ?
And what if there are multiple error's generated : for different subsets 
of the address list ?

Regards,
Mridul

> </message>
> 
> There are some other oddities in the spec, which badlop and I will post 
> about before too long.
> 
> Peter
> 




More information about the Standards mailing list