Details
-
Bug
-
Resolution: Done
-
Major
-
AMQ 7.8.1.GA
-
None
Description
User info is not correct when when connection is 2-way authenticated via TextFileCertificateLoginModule and AMQP protocol
When I use the and use the AMQP protocol to send messages to a queue, the User info is not correct.
//here correct 2021-07-01 14:40:22,954 [AUDIT](Thread-1 (activemq-netty-threads)) AMQ601715: User producer(producers)@127.0.0.1:52326 successfully authorized // here wrong 2021-07-01 14:40:23,020 [AUDIT](Thread-1 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$6@1a4013)) AMQ601500: User null@unknown is sending a message AMQPStandardMessage( [durable=true, messageID=0, address=exampleQueue, size=161, applicationProperties={}, properties=Properties{messageId=ID:a4f3ecd8-3f81-4936-b4b6-8311148055d7:1:1:1-1, userId=null, to='exampleQueue', subject='null', replyTo='null', correlationId=null, contentType=null, contentEncoding=null, absoluteExpiryTime=null, creationTime=Thu Jul 01 14:40:22 CST 2021, groupId='null', groupSequence=null, replyToGroupId='null'}, extraProperties = null], with Context: RoutingContextImpl(Address=null, routingType=null, PreviousAddress=null previousRoute:null, reusable=null, version=0)
But when I use a core protocol, the User info is correct.
2021-06-30 11:27:47,174 [AUDIT](Thread-2 (ActiveMQ-server-org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl$6@1a4013)) AMQ601500: User producer(producers)@127.0.0.1:49455 is sending a message CoreMessage[messageID=0,durable=true,userID=23d581d5-d953-11eb-b1ea-e6ebc567190f,priority=4, timestamp=Wed Jun 30 11:27:47 CST 2021,expiration=0, durable=true, address=exampleQueue,size=270,properties=TypedProperties[__AMQ_CID=23be022e-d953-11eb-b1ea-e6ebc567190f,_AMQ_ROUTING_TYPE=1]]@1604100720, with Context: RoutingContextImpl(Address=null, routingType=null, PreviousAddress=null previousRoute:null, reusable=null, version=0)
Attachments
Issue Links
- is cloned by
-
ENTMQBR-5278 [LTS] User info is not correct when connection is 2-way authenticated via TextFileCertificateLoginModule and AMQP protocol
- Closed