3611 Commits

Author SHA1 Message Date
Timothy Bish
ba7b8aff59 ARTEMIS-1139 Add a few tests using Qpid JMS of AMQP over WS
Adds a couple tests using Qpid JMS to validate that AMQP over
WS is working.
2017-05-02 21:18:07 -04:00
Clebert Suconic
757161f3d2 NO-JIRA: Trivial test fix 2017-05-02 21:16:10 -04:00
Justin Bertram
17d8918588 This closes #1241 2017-05-02 12:25:26 -05:00
Clebert Suconic
46c9cbe643 NO-JIRA: Adding script that will checkout a PR branch 2017-05-02 13:16:14 -04:00
Clebert Suconic
03bce9a120 This closes #1236 2017-05-02 13:01:29 -04:00
Timothy Bish
970782d36a ARTEMIS-1134 Close connection if error caught during event processing
If an error escapes into the event processing layer we close the
connection with an error condition to avoid the client becoming stuck on
waiting for a response from the broker and the broker side being in an
unknown state.
2017-05-02 13:01:29 -04:00
Clebert Suconic
6a251ee5c5 This closes #1237 2017-05-02 13:00:46 -04:00
Aditya Sharad
52a5b85557 ARTEMIS-1135: Prevent overflow in DayCounter
Use `long` array for hourly counters instead of `int` array.
Prevents overflow when the number of new messages (a `long`) is added.
Fixes one of the "Implicit narrowing conversion in compound assignment"
alerts on https://lgtm.com/projects/g/apache/activemq-artemis/alerts.
2017-05-02 13:00:46 -04:00
Aditya Sharad
b998a8bdaf ARTEMIS-1135: Fix potential message count overflow
Have `AddressControlImpl::getMessageCount` use and return a `long`.
Prevents potential overflow from use of an `int` count variable.
Fixes one of the "Implicit narrowing conversion in compound assignment"
alerts at https://lgtm.com/projects/g/apache/activemq-artemis/alerts.
2017-05-02 13:00:46 -04:00
Aditya Sharad
33c94635bf ARTEMIS-1135: Fix integer multiplication overflows
Multiplication operations where the operands have type `int` but the
result is cast to `long` may lead to overflow.
Fixes two instances of this problem, by ensuring the operands are cast
to `long` during multiplication.
This resolves the "Result of integer multiplication cast to long"
alerts at https://lgtm.com/projects/g/apache/activemq-artemis/alerts.
2017-05-02 13:00:46 -04:00
Clebert Suconic
5a17fe0804 This closes #1239 2017-05-02 13:00:10 -04:00
Michael Andre Pearce
40fc2b7721 ARTEMIS-1138 OSGI Netty Epoll Fix
* update qpid jms to 0.22 to pick up epoll change there.
* update netty to 4.1.9 to avoid version issues as qpid also uses.
* add netty-transport-native-epoll bundle to netty-core feature
2017-05-02 13:00:10 -04:00
Clebert Suconic
c1df97de66 This closes #1240 2017-05-02 11:38:09 -04:00
Justin Bertram
578c0fabb2 ARTEMIS-1137 handle empty routing type on restart 2017-05-02 10:06:42 -05:00
Justin Bertram
e22f77d8ca This closes #1220 2017-05-02 08:49:45 -05:00
Zoran Regvart
6db0c50272
Removes deprecated use and raw types
This cleans up the Netty implementation by replacing deprecated usage
and adds type parameters to raw types used.
2017-05-02 11:00:56 +02:00
Clebert Suconic
938c7a1d99 This closes #1238 2017-05-01 10:09:34 -04:00
Francesco Nigro
2cdc62572b ARTEMIS-1136 Improve UnpooledUnsafeDirectByteBufWrapper 2017-05-01 10:09:33 -04:00
Clebert Suconic
6df8c3a28d Revert " ARTEMIS-1112: don't block live activation if another live server is running"
This reverts commit 2f175b8d4ef00fe3b9a6388cc4beab7fa22461c1.
2017-05-01 09:50:45 -04:00
Timothy Bish
7f70e4b6f8 This closes #1235 2017-04-28 15:50:17 -04:00
Justin Bertram
849c4b7def ARTEMIS-547 authorize AMQP sender on attach 2017-04-28 14:30:03 -05:00
Timothy Bish
90efd86133 ARTEMIS-547 tests for auth on attach 2017-04-28 13:10:10 -05:00
Justin Bertram
27fce00468 This closes #1233 2017-04-28 13:08:10 -05:00
Timothy Bish
19a640db3a ARTEMIS-1132 return security errors instead of generic failed
When creating some AMQP resources (senders, receivers, etc) the broker
can return an error of 'failed' instead of the security error that is
expected in these cases.  In the case of a receiver being created and
a security error happening the broker fails to send back a response
causing the client to hang waiting for an attach response.
2017-04-28 13:08:10 -05:00
Clebert Suconic
4970d99fd0 This closes #1230 2017-04-28 12:49:29 -04:00
Jiri Danek
abf0aa8f0c NO-JIRA update artemis create samples in README.html and using-server.md 2017-04-28 12:49:14 -04:00
Timothy Bish
9401bf805c This closes #1234 2017-04-28 12:00:24 -04:00
Justin Bertram
444d7e392e ARTEMIS-1102 fix checkstyle 2017-04-28 10:42:55 -05:00
Martyn Taylor
fbf90eb9ee This closes #1232 2017-04-28 10:29:01 +01:00
Francesco Nigro
8cef9221f4 ARTEMIS-1131 Configure optimal GC settings 2017-04-28 10:29:01 +01:00
Martyn Taylor
0e800d81a7 This closes #1229 2017-04-28 10:16:21 +01:00
Timothy Bish
bad6acb58f ARTEMIS-1123 Major AMQP Test Suite refactoring
Refactor the AMQP test suite grouping tests into more logical unit
tests and adding additional coverage in many areas.  Adds some negative
validation tests to cover features that were only partially tested.

Brings in tests from ActiveMQ 5.x that were not yet ported to Artemis
to increase coverage amd test scenarios previously seen to have issues
in the 5.x broker.

Improve tests that were failing sporadically due to not waiting for
broker stats to be updated after async calls were made.
2017-04-28 10:16:21 +01:00
Martyn Taylor
60036c93b0 This closes #1228 2017-04-28 10:15:42 +01:00
Justin Bertram
3bd4bdb079 ARTEMIS-1130 log disallowed SSL protocols once 2017-04-28 10:15:42 +01:00
Martyn Taylor
c40f856de0 This closes #1226 2017-04-28 10:14:57 +01:00
Justin Bertram
cf911a1ca7 ARTEMIS-457 upgrade JGroups 2017-04-28 10:14:57 +01:00
Martyn Taylor
8e3663f24c This closes #1225 2017-04-28 10:14:09 +01:00
Justin Bertram
7e0fedf52e ARTEMIS-590 connector option to use default SSL context 2017-04-28 10:14:09 +01:00
Martyn Taylor
1e89bad221 This closes #1224 2017-04-28 10:11:25 +01:00
Justin Bertram
004eda42a2 ARTEMIS-1102 cert-based auth impl for OpenWire 2017-04-28 10:11:25 +01:00
Martyn Taylor
e81fb16bda This closes #1223 2017-04-28 10:10:13 +01:00
Justin Bertram
82b6a9678d ARTEMIS-1113 STOMP + management-address fix 2017-04-28 10:10:13 +01:00
Justin Bertram
abc2716191 This closes #1204 2017-04-26 15:23:24 -05:00
Bernd Gutjahr
2f175b8d4e ARTEMIS-1112: don't block live activation if another live server is running
Instead of going directly into backup mode within the shared-store
live activation, we just change the HA-policy to slave and return
to the caller - ActiveMQServerImpl.internalStart().
The caller will then handle the backup activation as usual
in a separate thread, such that EmbeddedJMS.start() can return.

Also added a related integration test.
2017-04-26 15:23:24 -05:00
Justin Bertram
53ace34b40 This closes #1227 2017-04-25 14:46:15 -05:00
Martyn Taylor
1c84bd39c4 ARTEMIS-826 Fix MQTT protocol detection 2017-04-25 13:53:21 +01:00
Justin Bertram
d0219bea18 This closes #1222 2017-04-24 13:52:51 -05:00
Howard Gao
694a5092b6 ARTEMIS-1128 QueueControlImpl.sendMessage() fixes
sendMessage() may throw ActiveMQException that causes CNFE
at the management client. Also it should check if headers
in the message is null (to prevent NPE).
2017-04-24 13:52:51 -05:00
Justin Bertram
e078666c03 This closes #1206 2017-04-24 10:25:08 -05:00
Stephen Higgs
24e3799347 ARTEMIS-1116 map ldap roles to local roles
adds general mapping between multiple amq internal roles
and a external roles (e.g. LDAP), configured in broker.xml
2017-04-24 10:25:08 -05:00