brusdev commented on code in PR #6050:
URL: https://github.com/apache/activemq-artemis/pull/6050#discussion_r2527077572


##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerSessionImpl.java:
##########
@@ -2436,7 +2436,7 @@ public synchronized RoutingStatus doSend(final 
Transaction tx,
          throw e;
       }
 
-      if (server.getConfiguration().isPopulateValidatedUser() && validatedUser 
!= null) {
+      if (server.getConfiguration().isPopulateValidatedUser() && validatedUser 
!= null && !validatedUser.equals(server.getConfiguration().getClusterUser())) {

Review Comment:
   The cluster user is the real validated user for the target broker. The 
original validated user could have no send permission on the target broker. The 
original validated user could be preserved with a special header (i.e. 
`_AMQ_ORIG_VALIDATED_USER`) at the bridge level before forwarding the message 
as the broker does for the original address before moving a message to DLA.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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