[Standards] Best practices for handling stanzas of unknown type
Peter Saint-Andre
stpeter at stpeter.im
Wed Oct 17 18:07:07 CDT 2007
> On Wed, Sep 26, 2007 at 10:33:57AM +0200, Tomasz Sterna wrote:
>> What are the best practices for handling stanzas with unknown type
>> attribute?
>
> Depends on the stanza.
>
> For message, the RFC says default to "normal".
>
> For presence, there is no default, so probably if the 'type' is an
> unknown value it is better to return an error (solves the presence
> leak). IMHO the error should be <bad-request/>.
>
> For IQ, only the defined values make sense (structured interaction) so
> here again I think it is proper to return a <bad-request/> error.
>
> I'll clarify this in rfc3920bis / rfc3921bis.
http://svn.xmpp.org:18080/browse/XMPP/trunk/internet-drafts/draft-saintandre-rfc3920bis-05.xml?r1=1293&r2=1294
http://svn.xmpp.org:18080/browse/XMPP/trunk/internet-drafts/draft-saintandre-rfc3921bis-04.xml?r1=1220&r2=1295
/psa
More information about the Standards
mailing list