Commit 3980468e authored by Guus der Kinderen's avatar Guus der Kinderen Committed by Christian Schudt

OF-1087: BOSH namespace fix

A change introduced in Openfire 3.10.3 (OF-938) changed how the BOSH
implementation would add default namespace definitions where applicable.
This new implementation depends on a space from being present in the
outer stanza. The 'fin' element that's transmitted here is wrapped in
a message stanza without any attributes ( <message><fin ... ) which
caused the namespace to be injected in the fin element (where the first
space was).

This commit adds a 'to' attribute to the wrapping message stanza, to
allow for users to work around the problem without having to update
Openfire itself.

The BOSH implementation will be adjusted to account for this in another
commit.
parent 3c580276
...@@ -44,11 +44,17 @@ ...@@ -44,11 +44,17 @@
Monitoring Plugin Changelog Monitoring Plugin Changelog
</h1> </h1>
<p><b>1.5.1</b> -- Feb 15, 2016</p>
<ul>
<li>[<a href='https://igniterealtime.org/issues/browse/OF-1087'>OF-1087</a>] - Fixed namespace handling (BOSH).</li>
</ul>
<p><b>1.5.0</b> -- October 12, 2015</p> <p><b>1.5.0</b> -- October 12, 2015</p>
<ul> <ul>
<li>[<a href='http://www.igniterealtime.org/issues/browse/OF-953'>OF-953</a>] - Updated JSP libraries.</li> <li>[<a href='http://www.igniterealtime.org/issues/browse/OF-953'>OF-953</a>] - Updated JSP libraries.</li>
<li>Requires Openfire 3.11.0.</li> <li>Requires Openfire 3.11.0.</li>
</ul> </ul>
<p><b>1.4.7</b> -- Oct 13, 2015</p> <p><b>1.4.7</b> -- Oct 13, 2015</p>
<ul> <ul>
<li>Fixed feature-not-implemented error</li> <li>Fixed feature-not-implemented error</li>
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<name>Monitoring Service</name> <name>Monitoring Service</name>
<description>Monitors conversations and statistics of the server.</description> <description>Monitors conversations and statistics of the server.</description>
<author>Jive Software</author> <author>Jive Software</author>
<version>1.5.0</version> <version>1.5.1</version>
<date>10/12/2015</date> <date>2/15/2016</date>
<minServerVersion>4.0.0</minServerVersion> <minServerVersion>4.0.0</minServerVersion>
<databaseKey>monitoring</databaseKey> <databaseKey>monitoring</databaseKey>
<databaseVersion>3</databaseVersion> <databaseVersion>3</databaseVersion>
......
...@@ -177,6 +177,7 @@ public class IQQueryHandler extends AbstractIQHandler implements ...@@ -177,6 +177,7 @@ public class IQQueryHandler extends AbstractIQHandler implements
final QueryRequest queryRequest) { final QueryRequest queryRequest) {
Message finalMessage = new Message(); Message finalMessage = new Message();
finalMessage.setTo(session.getAddress());
Element fin = finalMessage.addChildElement("fin", NAMESPACE); Element fin = finalMessage.addChildElement("fin", NAMESPACE);
if(queryRequest.getQueryid() != null) { if(queryRequest.getQueryid() != null) {
fin.addAttribute("queryid", queryRequest.getQueryid()); fin.addAttribute("queryid", queryRequest.getQueryid());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment