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/
|