Ticket #47 (closed defect: fixed)
xmlns:xmpp parameter is missing when JSJACHBC_USE_BOSH_VER
| Reported by: | codendi | Owned by: | zeank |
|---|---|---|---|
| Priority: | normal | Milestone: | jsjac-1.3 |
| Component: | jsjac | Version: | 1.3 |
| Severity: | blocker | Keywords: | |
| Cc: |
Description
Hello,
During the first stage of the connection to a xmpp server through bosh, a query failed (BAD REQUEST) due to a malformed message:
<body rid="664540" sid="d720b9e5" xmlns="http://jabber.org/protocol/httpbind" key="6ca979ecb2029d02e5670520afc485147f882abc" xmpp:restart="true">
<iq xmlns="jabber:client" to="codendi4.xrce.xerox.com" type="set" id="bind_1">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>325bb80164e7abd6ff69520e806884a94af4cbe7</resource>
</bind>
</iq>
</body>
==> The parameter xmlns:xmpp='urn:xmpp:xbosh' is missing alongside xmpp:restart="true".
See in attachment a patch (based on trunk) to fix the problem:
Index: src/JSJaCHttpBindingConnection.js
===================================================================
--- src/JSJaCHttpBindingConnection.js (revision 9881)
+++ src/JSJaCHttpBindingConnection.js (working copy)
@@ -149,8 +149,10 @@
if (last)
reqstr += "type='terminate' ";
else if (this._reinit) {
- if (JSJACHBC_USE_BOSH_VER)
+ if (JSJACHBC_USE_BOSH_VER) {
reqstr += "xmpp:restart='true' ";
+ reqstr += " xmlns:xmpp='urn:xmpp:xbosh'";
+ }
this._reinit = false;
}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
