Commit Graph

11068 Commits

Author SHA1 Message Date
Christopher L. Shannon 856d54c7bc
Merge pull request #762 from mattrpav/AMQ-8443-tests
[AMQ-8443] Add unit test
2022-02-09 10:48:04 -05:00
Matt Pavlovich 09458713aa [AMQ-8443] Add unit test 2022-02-09 08:50:24 -06:00
Christopher L. Shannon a7109bc025
Merge pull request #761 from mattrpav/AMQ-8397-tests
[AMQ-8397] Add unit tests for AMQ-8397
2022-02-09 06:33:52 -05:00
Matt Pavlovich 9d8ee0d3b7 [AMQ-8397] Add unit tests for AMQ-8397 2022-02-08 22:19:57 -06:00
Christopher L. Shannon fccb40f518
Merge pull request #759 from mattrpav/AMQ-8413b
[AMQ-8413] NetworkConnector remote user and pass unit test
2022-02-07 11:27:15 -05:00
Matt Pavlovich 2a9f777aab [AMQ-8413] NetworkConnectore remote user and pass unit test 2022-02-07 08:22:27 -06:00
Christopher L. Shannon (cshannon) 19949e36bc [AMQ-8412] - Add some comments for maxFrameSizeEnabled 2022-02-07 08:45:28 -05:00
Christopher L. Shannon fb036974ca
Merge pull request #758 from mattrpav/AMQ-8053b
[AMQ-8053] UserIDBroker unit tests
2022-02-07 08:28:08 -05:00
Christopher L. Shannon (cshannon) 26a3c55833 AMQ-8412 - Add wireformat negotiation test for maxFrameSizeEnabled
Verify that maxFrameSizeEnabled being configured on the client or the
server is not negotiated and won't affect the other
2022-02-07 08:03:06 -05:00
Christopher L. Shannon 43aa1800fa
Merge pull request #756 from mattrpav/AMQ-8412c
[AMQ-8412] Update client-side maxFrameSize handling to be more symetrical with server-side
2022-02-07 08:01:58 -05:00
Matt Pavlovich 67a2edbf0d [AMQ-8412] Update client-side maxFrameSize handling to be more symetrical with server-side
- Handle in the OpenWireFormat class
 - Add unit tests to confirm
 - Verify compression is accounted for
 - Verify the ability to disable using wireFormat.maxFrameSizeEnabled=false
 - [cshannon] Reworked max frame size test case to add in all transports and all client/server cases
2022-02-06 17:45:11 -06:00
Matt Pavlovich 49f1b2c903 [AMQ-8053] UserIDBroker unit tests 2022-02-06 12:46:44 -06:00
Jean-Baptiste Onofré c36ca15d5d Fix maven plugin version 2022-02-01 18:10:44 +01:00
Jean-Baptiste Onofré bd8c24e91f
Merge pull request #753 from coheigea/coheigea/AMQ-8468
AMQ-8648 - CVE-2022-23437: Infinite loop within Apache XercesJ xml pa…
2022-02-01 14:22:47 +01:00
Jean-Baptiste Onofré 6f5860d7fc Fix javadoc generation related to reproducible build 2022-01-31 18:18:07 +01:00
Colm O hEigeartaigh 70915ea5c0
AMQ-8648 - CVE-2022-23437: Infinite loop within Apache XercesJ xml parser 2022-01-31 16:44:17 +00:00
Jean-Baptiste Onofré daeb23a5ee
Merge pull request #752 from jbonofre/AMQ-8467
[AMQ-8467] Upgrade to xstream 1.4.19
2022-01-31 17:22:31 +01:00
Jean-Baptiste Onofré 2206eb3ad6 [AMQ-8467] Upgrade to xstream 1.4.19 2022-01-31 11:27:53 +01:00
Jean-Baptiste Onofré bd7f391a42
Merge pull request #749 from stolsvik/main
StatisticsBrokerPlugin: Add feature: request destination firstMessageTimestamp
2022-01-30 16:06:34 +01:00
Jean-Baptiste Onofré c5d07ac016
Merge pull request #748 from mattrpav/AMQ-8412b
[AMQ-8412] Client-side handling of max frame size received from broker
2022-01-29 07:07:57 +01:00
Matt Pavlovich 48d0fb1171 [AMQ-8412] Client-side management of max frame size
- Store maxFrameSize on client-side
 - Check messages on outbound send to send an actionable exception to the caller
 - Add a reason code for max message size exceeded (client-side)
2022-01-26 09:49:42 -06:00
Endre Stølsvik 9167a79b79 StatisticsBrokerPlugin: Add feat: request destination firstMessageTimestamp
Adding a feature (STATS_FIRST_MESSAGE_TIMESTAMP) to the
StatisticsBrokerPlugin's destination-statistics for getting the
timestamp of the first message in the destination(s) being requested: If
you on the query-message set the property
StatisticsBroker.STATS_FIRST_MESSAGE_TIMESTAMP to anything (e.g. boolean
true), a long value "firstMessageTimestamp" will be added to the
statistics reply message(s). Since the reply message has JMSTimestamp
set, which is the broker's now-timestamp, you may also on the query side
calculate the age of the first message in milliseconds. The key name was
chosen since that is the name of the corresponding feature in Artemis.

This extension of the existing feature is implemented to be as
non-intrusive as possible, adding very little runtime cost if not
requested. It also seems like the runtime cost for enabling this
feature, thus finding and adding the firstMessageTimestamp, is small.

While at it, also slightly improving an existing feature
(STATS_DENOTE_END_LIST) where a reply to a destination query can be
"null terminated": After sending the relevant replies, the
StatisticsBroker also sends an empty message. This feature is relevant
if the query is a wildcard query, thus returning multiple messages: The
empty message denotes the end of the replies. However, to activate this
feature, a somewhat complicated query destination had to be constructed.
Adopting the solution for the other StatisticsBroker feature where you
may reset the broker statistics by adding a property to the query
message, this null-termination feature now /also/ checks for the
presence of this query modifier STATS_DENOTE_END_LIST as a property.
(This property based solution was thus also adopted for the present
'firstMessageTimestamp' solution, as it was found much more intuitive).

Added tests for both the STATS_FIRST_MESSAGE_TIMESTAMP query modifier,
and the improved STATS_DENOTE_END_LIST property-based query modifier.

Had to make the Topic.doBrowse(List browseList, int max) public - the
corresponding method for Queue was already public.

Made the evaluation of whether this is a StatisticsBroker-relevant
message a microscopic bit more performant (exiting faster if not
relevant): To the initial test of whether the message is relevant, which
only checked for replyTo being set, a check for 'destination.
startsWith("ActiveMQ.Statistics")' was added. Only if so, the rest of
the evaluations kick in. Also using 'string.startsWith(..)' instead of
the verbose 'string.regionMatches(..)'.

Removed an unused import on PartitionBrokerTest.java, as IntelliJ
complained about not finding it.
2022-01-25 09:45:48 +01:00
Jean-Baptiste Onofré d5441530a9
Merge pull request #746 from mattrpav/AMQ-8462
[AMQ-8462] Remove double call to listConnectionStates during connecti…
2022-01-24 18:47:16 +01:00
Matt Pavlovich 6a944a05d9 [AMQ-8462] Remove double call to listConnectionStates during connection close 2022-01-24 09:21:19 -06:00
Jean-Baptiste Onofré 3d2fb2b609
Merge pull request #707 from AlexejTimonin/sendTextMessageWithProperties-delimiter
[AMQ-8372] Allow custom delimiter when sending TextMessages via MBean
2022-01-22 17:14:03 +01:00
Jean-Baptiste Onofré 72b56f0941
Merge pull request #745 from cesarhernandezgt/AMQ-8460
[AMQ-8460] Upgrade to Spring 5.3.15
2022-01-21 08:43:49 +01:00
Cesar Hernandez 7d47508ceb [AMQ-8460] Upgrade to Spring 5.3.15 2022-01-20 12:00:46 -06:00
Jean-Baptiste Onofré 70e0b3babf
Merge pull request #728 from lucastetreault/scheduler-performance
[AMQ-7340] Improve scheduled message performance
2022-01-19 19:01:26 +01:00
Jean-Baptiste Onofré ea48a9c257 This closes #736 2022-01-19 18:29:25 +01:00
Anthony F d9450cdd74 [AMQ-8409] Fixed Unexpected \\r instead of \r in header property in incoming messages 2022-01-19 18:12:46 +01:00
Jean-Baptiste Onofré 5a16145c32
Merge pull request #727 from ViliusS/security/fix-web-console-access
[Security] Fix user permissions in web console
2022-01-19 17:47:41 +01:00
Jean-Baptiste Onofré 857e5fa649
Merge pull request #678 from jbonofre/AMQ-7351
[AMQ-7351] Upgrade to Apache POM 24
2022-01-18 14:19:08 +01:00
jbonofre 53a69abe5e [AMQ-7351] Upgrade to Apache POM 24 2022-01-17 18:47:54 +01:00
Jean-Baptiste Onofré 546df47295
Merge pull request #402 from jbonofre/AMQ-7325
[AMQ-7325] Upgrade to Derby 10.15.2.0
2022-01-17 18:33:14 +01:00
Jean-Baptiste Onofré ee21925c08 [AMQ-7325] Upgrade to Derby 10.15.2.0 2022-01-17 16:29:53 +01:00
Jean-Baptiste Onofré de563e76ce
Merge pull request #738 from mattrpav/AMQ-8341
[AMQ-8341] Remove FTP Blob strategy
2022-01-15 07:01:25 +01:00
Jean-Baptiste Onofré 4ddb4ae6c6
Merge pull request #741 from mattrpav/AMQ-8443
[AMQ-8443] Allow reconnect command to work
2022-01-15 06:58:48 +01:00
Jean-Baptiste Onofré 0508c22481
Merge pull request #742 from mattrpav/AMQ-8053
[AMQ-8053] Do not override JMSXUserID over network connections
2022-01-15 06:47:48 +01:00
Jean-Baptiste Onofré 8fd13a349f
Merge pull request #740 from jbonofre/AMQ-8252
[AMQ-8252] Introduce stackTraceEnabled flag on transport connector
2022-01-15 06:46:00 +01:00
Jean-Baptiste Onofré ba98a39cef
Merge pull request #739 from jbonofre/AMQ-8425
[AMQ-8425] Get process from any user in bin/activemq script
2022-01-15 06:43:08 +01:00
Jean-Baptiste Onofré 2f96b4a60c [AMQ-8252] Introduce stackTraceEnabled flag on transport connector to define if the stack trace should be displayed or not in case of WARN messages 2022-01-14 11:37:44 +01:00
Jean-Baptiste Onofré c246e0926c [AMQ-8425] Get process from any user in bin/activemq script 2022-01-14 11:37:12 +01:00
Jean-Baptiste Onofré ff134fd135 [AMQ-8456] Fix unit test compilation 2022-01-12 20:36:29 +01:00
Matt Pavlovich 2e784d07be [AMQ-8341] Remove FTP Blob strategy
- Remove commons-net dependency
2022-01-12 11:05:43 -06:00
Matt Pavlovich bc9ff5a09f [AMQ-8443] Allow reconnect command to work 2022-01-12 11:05:17 -06:00
Matt Pavlovich bec734a133 [AMQ-8043] Do not override JMSXUserID when message comes across network connector 2022-01-12 09:00:20 -06:00
Jean-Baptiste Onofré 0585a2998d
Merge pull request #744 from jbonofre/AMQ-8445
[AMQ-8445] Fix SSLParameters set in the SSL transport
2022-01-12 11:19:52 +01:00
Jean-Baptiste Onofré c2e2c818b5 [AMQ-8445] Fix SSLParameters set in the SSL transport 2022-01-12 08:48:00 +01:00
Matt Pavlovich 05426d637c
[AMQ-8397] Add a destination option to sendDuplicateFromStoreToDLQ (#724)
- Default 'true' to match existing behavior
 - Added counter to DestinationView
2021-12-20 08:38:32 -06:00
Matt Pavlovich b196e9a88a
[AMQ-8400] Add synchronization handling for Transaction to prevent CME (#720) 2021-12-20 08:37:56 -06:00