mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Fondermann <bf_...@brainlounge.de>
Subject Re: svn commit: r990326 - in /mina/vysper/trunk/server/core/src: main/java/org/apache/vysper/xmpp/delivery/ main/java/org/apache/vysper/xmpp/delivery/inbound/ main/java/org/apache/vysper/xmpp/modules/core/base/handler/ main/java/org/apache/vysper/xmpp/modu...
Date Sat, 28 Aug 2010 14:51:04 GMT
ngn@apache.org wrote:
> Author: ngn
> Date: Sat Aug 28 08:53:33 2010
> New Revision: 990326
> 
> URL: http://svn.apache.org/viewvc?rev=990326&view=rev
> Log:
> Some additional refactorings based on EntityUtils (VYSPER-246)
> 
> Added:
>     mina/vysper/trunk/server/core/src/test/java/org/apache/vysper/xmpp/addressing/EntityUtilsTestCase.java
> Modified:
>     mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/StanzaRelayBroker.java
> 
> Modified: mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/StanzaRelayBroker.java
> URL: http://svn.apache.org/viewvc/mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/StanzaRelayBroker.java?rev=990326&r1=990325&r2=990326&view=diff
> ==============================================================================
> --- mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/StanzaRelayBroker.java
(original)
> +++ mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/delivery/StanzaRelayBroker.java
Sat Aug 28 08:53:33 2010
> @@ -76,11 +76,9 @@ public class StanzaRelayBroker implement
>              //return;
>          }
>  
> -        String domain = receiver.getDomain();
> -
>          boolean relayToExternal = serverRuntimeContext.getServerFeatures().isRelayingToFederationServers();
>  
> -        if (domain.endsWith(serverRuntimeContext.getServerEnitity().getDomain())) {
> +        if (EntityUtils.isAddressingServerComponent(receiver, serverRuntimeContext.getServerEnitity())
|| toComponent) {
>              internalRelay.relay(receiver, stanza, deliveryFailureStrategy);
>          } else {
>              if (!relayToExternal)

ok, fixed already in r990362, looks fine.

  Bernd


Mime
View raw message