activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r731529 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java
Date Mon, 05 Jan 2009 11:27:30 GMT
Author: dejanb
Date: Mon Jan  5 03:27:17 2009
New Revision: 731529

URL: http://svn.apache.org/viewvc?rev=731529&view=rev
Log:
improvement for https://issues.apache.org/activemq/browse/AMQ-1747 patch

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java?rev=731529&r1=731528&r2=731529&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java
Mon Jan  5 03:27:17 2009
@@ -54,11 +54,9 @@
         
         Destination existing = this.getDestinationMap().get(destination);
         if (existing != null) {
-        	return existing;
+        	return super.addDestination(context, destination);
         }
         
-        // if(!((ActiveMQTempDestination)destination).getConnectionId().equals(context.getConnectionId().getValue())
-        // ) {
         if (!securityContext.isBrokerContext()) {
             Set<?> allowedACLs = null;
             if (!destination.isTemporary()) {
@@ -72,7 +70,6 @@
             }
 
         }
-        // }
 
         return super.addDestination(context, destination);
     }



Mime
View raw message