GitHub user michaelandrepearce opened a pull request:
https://github.com/apache/activemq-artemis/pull/2093
ARTEMIS-1872 Check for queue exists before creating shared queue
1. Add tests case to verify issue and fix, tests also tests for same
behavior using CORE, OPENWIRE and AMQP JMS Clients.
2. Update Core Client to check for queue before creating, sharedQueue as
per createQueue logic.
3. Update ServerSessionPacketHandler to handle packets from old clients to
perform to implement the same fix server side for older clients.
4. Correct AMQP protocol so correct error code is returned on security
exception so that amqp jms can correctly throw JMSsecurityException
5. Correct AMQP protocol to check for queue exists before create
6. Correct OpenWire protocol to check for address exists before create
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/michaelandrepearce/activemq-artemis
ARTEMIS-1872
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/2093.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2093
----
commit 458cec631f34af35ef4fc399a4879fdfceae87db
Author: Michael André Pearce <michael.andre.pearce@...>
Date: 2018-05-18T21:09:32Z
ARTEMIS-1872 Check for queue exists before creating shared queue
1. Add tests case to verify issue and fix, tests also tests for same
behavior using CORE, OPENWIRE and AMQP JMS Clients.
2. Update Core Client to check for queue before creating, sharedQueue as
per createQueue logic.
3. Update ServerSessionPacketHandler to handle packets from old clients to
perform to implement the same fix server side for older clients.
4. Correct AMQP protocol so correct error code is returned on security
exception so that amqp jms can correctly throw JMSsecurityException
5. Correct AMQP protocol to check for queue exists before create
6. Correct OpenWire protocol to check for address exists before create
----
---