[ 
https://issues.apache.org/jira/browse/ARTEMIS-4767?focusedWorklogId=992052&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-992052
 ]

ASF GitHub Bot logged work on ARTEMIS-4767:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Nov/25 14:37
            Start Date: 17/Nov/25 14:37
    Worklog Time Spent: 10m 
      Work Description: jbertram commented on code in PR #6050:
URL: https://github.com/apache/activemq-artemis/pull/6050#discussion_r2534332346


##########
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:
   I don't see how that would be possible.





Issue Time Tracking
-------------------

    Worklog Id:     (was: 992052)
    Time Spent: 1.5h  (was: 1h 20m)

> Original JMSXUserID is lost on message redistribution
> -----------------------------------------------------
>
>                 Key: ARTEMIS-4767
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4767
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 2.33.0
>            Reporter: Michael Desmedt
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> when {{populate-validated-user}} is set to true, in a clustered configuration:
> if both the producer and the consumer are on the same broker, when a message 
> is sent with user1, consumed message contains property {{JMSXUserID:user1}}
> if the producer and the consumer are on different brokers in the same 
> cluster, when a message is sent with user1, the consumed message contains 
> property {{JMSXUserID:<value of <cluster-user>>}}
>  
> initial validated-user value is lost.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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