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

Pedro Melo melo at simplicidade.org
Fri Jan 12 00:18:02 UTC 2007


Any comments on this patch?

Thanks,

On Jan 4, 2007, at 1:41 AM, Pedro Melo wrote:

> 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.
>
> <djabberd-iq-fix.patch>
>
>
> Best regards,
> --
> Pedro Melo
> Blog: http://www.simplicidade.org/notes/
> Jabber ID: melo at simplicidade.org
> Use Jabber!
>
>

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




More information about the Djabberd mailing list