[ 
https://issues.apache.org/jira/browse/ARTEMIS-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Viktor Kolomeyko updated ARTEMIS-2751:
--------------------------------------
    Description: 
Method {{setValidatedUserID}} is not overridden for {{AMQPMessage}} class - 
therefore it calls parent implementation which does nothing.

On the other hand: 
{{org.apache.activemq.artemis.core.message.impl.CoreMessage#setValidatedUserID}}
 does the right thing and correctly retains validated user information as 
supplied by 
{{org.apache.activemq.artemis.core.server.impl.ServerSessionImpl#doSend}}

 This deficiency prevents from reading 
{{org.apache.activemq.artemis.api.core.Message#HDR_VALIDATED_USER}} attribute 
when it is received via AMQP protocol. 

  was:
Method `setValidatedUserID` is not overridden for `AMQPMessage` class - 
therefore it calls parent implementation which does nothing.

On the other hand: 
`org.apache.activemq.artemis.core.message.impl.CoreMessage#setValidatedUserID` 
does the right thing and correctly retains validated user information as 
supplied by 
`org.apache.activemq.artemis.core.server.impl.ServerSessionImpl#doSend`

 

This deficiency prevents from reading 
`org.apache.activemq.artemis.api.core.Message#HDR_VALIDATED_USER` attribute 
when it is received via AMQP protocol. 


> Call to AMQPMessage.setValidatedUserID does nothing
> ---------------------------------------------------
>
>                 Key: ARTEMIS-2751
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2751
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: AMQP
>    Affects Versions: 2.12.0
>            Reporter: Viktor Kolomeyko
>            Priority: Major
>
> Method {{setValidatedUserID}} is not overridden for {{AMQPMessage}} class - 
> therefore it calls parent implementation which does nothing.
> On the other hand: 
> {{org.apache.activemq.artemis.core.message.impl.CoreMessage#setValidatedUserID}}
>  does the right thing and correctly retains validated user information as 
> supplied by 
> {{org.apache.activemq.artemis.core.server.impl.ServerSessionImpl#doSend}}
>  This deficiency prevents from reading 
> {{org.apache.activemq.artemis.api.core.Message#HDR_VALIDATED_USER}} attribute 
> when it is received via AMQP protocol. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to