This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new 0f6c5fbbdd ARTEMIS-5499 Fixing logic on auto create and fixing broken 
tests
0f6c5fbbdd is described below

commit 0f6c5fbbddb8ca73f0b00a2b623782f4dbdef13a
Author: Clebert Suconic <[email protected]>
AuthorDate: Wed Jun 4 10:21:22 2025 -0400

    ARTEMIS-5499 Fixing logic on auto create and fixing broken tests
---
 .../org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
 
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
index 4d42063db5..dd93dad741 100644
--- 
a/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
+++ 
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java
@@ -765,7 +765,7 @@ public class ServerSessionImpl implements ServerSession, 
FailureListener {
 
       AddressInfo addressInfo = 
server.getAddressInfo(queueConfiguration.getAddress());
 
-      if (as.isAutoCreateAddresses() && addressInfo == null || 
!addressInfo.getRoutingTypes().contains(queueConfiguration.getRoutingType())) {
+      if (as.isAutoCreateAddresses() && (addressInfo == null || 
!addressInfo.getRoutingTypes().contains(queueConfiguration.getRoutingType()))) {
          securityCheck(queueConfiguration.getAddress(), 
queueConfiguration.getName(), CheckType.CREATE_ADDRESS, this);
       }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to