We're updating the issue view to help you get more done. 

Allow s2s message of subdomain of XMPP domain when no components are found

Description

Hello,

it seems this bug is still around/reappeared in version 3.9.1. Again it is not possible to connect to a server in a subdomain of the xmpp.domain. The patch is quite similar to the old one from 2006. I have applied a patch for version 3.9.1 below.

Kind Regrads,
Jürgen

— ./src/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java~ 2014-02-06 15:39:46.000000000 +0100
+++ ./src/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java 2014-03-17 11:33:56.198208000 +0100
@@ -236,6 +236,10 @@
else if (jid.getDomain().contains(serverName)) {
// Packet sent to component hosted in this server
routed = routeToComponent(jid, packet, routed);
+ if ( !routed ) {
+ // most likely not a component but a subdomain server
+ routed = routeToRemoteDomain(jid, packet, routed);
+ }
}
else {
// Packet sent to remote server

Environment

None

Acceptance Test - Entry

None

Activity

Show:
Daryl Herzmann
March 19, 2014, 2:42 AM

@csh what do you think of this patch?

Daryl Herzmann
March 20, 2014, 12:39 PM

Updated patch suggested

— ./src/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java~ 2014-02-06 15:39:46.000000000 +0100
+++ ./src/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java 2014-03-20 11:05:24.817190000 +0100
@@ -233,7 +233,7 @@
// Packet sent to our domain.
routed = routeToLocalDomain(jid, packet, fromServer);
}

  • else if (jid.getDomain().contains(serverName)) {
    + else if (jid.getDomain().contains(serverName) && hasComponentRoute(jid)) {
    // Packet sent to component hosted in this server
    routed = routeToComponent(jid, packet, routed);
    }

Fixed

Assignee

csh

Reporter

Daryl Herzmann

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure