]> granicus.if.org Git - ejabberd/commitdiff
Include client namespace in CAPs queries (EJAB-1411)
authorPablo Polvorin <pablo.polvorin@process-one.net>
Wed, 9 Mar 2011 19:23:12 +0000 (16:23 -0300)
committerPablo Polvorin <pablo.polvorin@process-one.net>
Wed, 9 Mar 2011 19:30:16 +0000 (16:30 -0300)
When constructing an IQ record, if no namespace is specified
for the IQ,  exmpp treat that literally as "no namespace" and
so put xmlns="" (it do not interpret it as "no change" and let
the parent namespace apply).
So it is neccesarly to especify the jabber:client namespace.

See EXMPP-53.

src/mod_caps.erl

index 11099ff9e8801f21661c0cfd0082ea295452ce28..7e494bffcd9a8325d39c5e98051360a0e0ff2d84 100644 (file)
@@ -376,6 +376,7 @@ feature_request(Host, From, Caps, [SubNode | Tail] = SubNodes) ->
                          end,
            if NeedRequest ->
                    IQ = #iq{type = 'get',
+                             iq_ns = ?NS_JABBER_CLIENT,
                             ns = ?NS_DISCO_INFO,
                             payload = #xmlel{ns = ?NS_DISCO_INFO,
                                              name = 'query',