[Standards] Best practices for handling stanzas of unknown type

Peter Saint-Andre stpeter at stpeter.im
Wed Oct 17 17:58:38 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.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



More information about the Standards mailing list