[PATCH] compliance with section 9.2.3 of RFC 3920 (IQ Semantics)

Pedro Melo melo at simplicidade.org
Thu Jan 4 01:41:59 UTC 2007


Hi,

See http://rfc.net/rfc3920.html#s9. for reference, search for 9.2.3.

Basically, to match an IQ with a semantic meaning, we must look at  
the namespace and not at the tag the first child is using. The  
relevant text of the RFC:
   "The data content of the request and response is defined by the  
namespace
    declaration of a direct child element of the IQ element"

That means for example, that as long as I use xmlns='vcard-temp' in  
the first child, the tag name can be vCard, query, or even  
sometagnobodyneedstoknow.

The attached patch fixes the signature method of the IQ class, and  
changes all the occurences of a set/get-{ns}tag I could find.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: djabberd-iq-fix.patch
Type: application/octet-stream
Size: 7072 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/djabberd/attachments/20070104/23c9c727/djabberd-iq-fix.obj
-------------- next part --------------


Best regards,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
Jabber ID: melo at simplicidade.org
Use Jabber!




More information about the Djabberd mailing list