[jdev] XML Namespaces validation

Kim Alvefur zash at zash.se
Thu Apr 14 17:13:31 UTC 2011


On Thu, 2011-04-14 at 23:57 +0700, Sergey Dobrov wrote:
> Can not find the moment in RFC. What should happen if I send stanza
> like this through my C2S connection:
> 
> <iq to="component.server.org" type="get" id="5">
>   <query xmlns="jabber:iq:version">
>     <caps:c a="b"/>
>   </query>
> </iq>
> 
> The moment is unbound prefix.

You should get a not-well-formed stream error, see
http://tools.ietf.org/html/rfc6120#section-4.9.3.13

> Ejabberd routes stanza as usually but Twisted-based component crashed
> when parsing it. Who's wrong? 

Both, routing that is wrong, and crashing isn't right either. ;)

-- 
Kim Alvefur <zash at zash.se>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20110414/802c3767/attachment.pgp>


More information about the JDev mailing list