Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-4148

Audit message shows a wrong messages in the log

XMLWordPrintable

    • False
    • False
    • Undefined
    • Verified in a release
    • Hide

      bin/artemis consumer --destination queue://order.a --url tcp://localhost:61616 --user billuser --password orderuser --message-count 10

      Show
      bin/artemis consumer --destination queue://order.a --url tcp://localhost:61616 --user billuser --password orderuser --message-count 10
      • Download amq 7.7
      • create a broker (artemis create broker)
      • replace broker.xml, logging.properties, artemis-users.properties, artemis-roles.properties

      Audit * When a user which does not have access to a queue, audit message print an entry log that is consuming messages:

      In case of producer,

      bin/artemis producer --destination queue://order.a --url tcp://localhost:61616 --user orderuser --password orderuser --message-count 10
      

      We got the following message:

      2020-10-26 15:34:31,365 INFO  [org.apache.activemq.audit.message] AMQ601501: User admin(amq)@127.0.0.1:54580 is consuming a message from order.a
      

      In case of consumer,

      bin/artemis consumer --destination queue://order.a --url tcp://localhost:61616 --user billuser --password orderuser
      

      we got the following message:

      2020-10-26 15:35:20,501 INFO  [org.apache.activemq.audit.resource] AMQ601715: User admin(amq)@127.0.0.1:55919 successfully authorized
      2020-10-26 15:35:20,522 INFO  [org.apache.activemq.audit.base] AMQ601265: User admin(amq)@127.0.0.1:55919 is creating a core consumer on target resource ServerSessionImpl(jms-session=*N/A*) [with parameters: [0, order.a, null, 0, false, true, null]]
      

        1. ocp-reproducer.zip
          16 kB
        2. logging.properties
          3 kB
        3. host0-standalone-instance.zip
          43 kB
        4. broker.xml
          12 kB
        5. artemis-users.properties
          1 kB
        6. artemis-roles.properties
          1.0 kB

              rhn-support-jbertram Justin Bertram
              rhn-support-aboucham Abel Bouchama
              Mikhail Krutov Mikhail Krutov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: