[jdev] XML Namespaces validation

Sergey Dobrov binary at jrudevels.org
Thu Apr 14 17:23:36 UTC 2011


On 04/15/2011 12:13 AM, Kim Alvefur wrote:
> 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
Ok, so it seems that I have to post a but to ejabberd...

> 
>> 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. ;)
What should do XEP-114 compliant component? Just drop such stanza? The
Twisted-based component reconnects immediately which seems good because
jabber server have to validate XML first. Am I wrong?

> 
> 
> 
> 
> _______________________________________________
> JDev mailing list
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________


-- 
With best regards,
Sergey Dobrov,
XMPP Developer and JRuDevels.org founder.



More information about the JDev mailing list