r7280 - dumbhippo/trunk/openfire/src/java/org/jivesoftware/openfire/session



Author: otaylor
Date: 2008-01-31 13:28:09 -0600 (Thu, 31 Jan 2008)
New Revision: 7280

Modified:
   dumbhippo/trunk/openfire/src/java/org/jivesoftware/openfire/session/ClientSession.java
Log:
Hack the version number out of the XMPP stream so that Loudmouth won't try to
 authenticate with SASL.


Modified: dumbhippo/trunk/openfire/src/java/org/jivesoftware/openfire/session/ClientSession.java
===================================================================
--- dumbhippo/trunk/openfire/src/java/org/jivesoftware/openfire/session/ClientSession.java	2008-01-31 17:53:51 UTC (rev 7279)
+++ dumbhippo/trunk/openfire/src/java/org/jivesoftware/openfire/session/ClientSession.java	2008-01-31 19:28:09 UTC (rev 7280)
@@ -281,11 +281,13 @@
         sb.append(session.getStreamID().toString());
         sb.append("\" xml:lang=\"");
         sb.append(language);
-        // Don't include version info if the version is 0.0.
-        if (majorVersion != 0) {
-            sb.append("\" version=\"");
-            sb.append(majorVersion).append(".").append(minorVersion);
-        }
+        // HIPPO: If we report a version of 1.0, loudmouth-1.3 and newer try to use SASL, and it would
+	// be very hard for use to support DIGEST-MD5 + SASL. So, always omit the version
+//         // Don't include version info if the version is 0.0.
+//         if (majorVersion != 0) {
+//             sb.append("\" version=\"");
+//             sb.append(majorVersion).append(".").append(minorVersion);
+//         }
         sb.append("\">");
         connection.deliverRawText(sb.toString());
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]