Commit Graph

11103 Commits

Author SHA1 Message Date
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
Matt Pavlovich ee768a28d6
[AMQ-8413] Add remoteUserName and remotePassword config fields to network connector (#725) 2021-12-20 08:36:56 -06:00
Jean-Baptiste Onofré f709221d91
Merge pull request #734 from jbonofre/AMQ-8405
[AMQ-8405] Upgrade to ASM 9.2
2021-12-20 06:05:20 +01:00
Jean-Baptiste Onofré e881e0cb21
Merge pull request #735 from jbonofre/AMQ-8404
[AMQ-8404] Upgrade to jackson 2.13.0
2021-12-20 06:03:27 +01:00
Jean-Baptiste Onofré 18b231bf9f
Merge pull request #711 from jgallimore/AMQ-8275
AMQ-8275 - Java 16 SSL - reflection warning
2021-12-19 08:01:05 +01:00
Jean-Baptiste Onofré f11e49b9b7 [AMQ-8405] Upgrade to ASM 9.2 2021-12-19 07:48:27 +01:00
Jean-Baptiste Onofré 0f62ec0fec [AMQ-8404] Upgrade to jackson 2.13.0 2021-12-19 07:48:03 +01:00
Jean-Baptiste Onofré 8a2e8c5e41
Merge pull request #737 from jbonofre/AMQ-8439
[AMQ-8439] Exclude camel.xml from assembly validateExampleConfig test
2021-12-19 07:45:55 +01:00
Jean-Baptiste Onofré 359b410ffd [AMQ-8439] Exclude camel.xml from assembly validateExampleConfig test 2021-12-18 05:57:24 +01:00
Jean-Baptiste Onofré 344055963d
Merge pull request #732 from jbonofre/AMQ-8429
[AMQ-8429] Upgrade to Spring 5.3.13
2021-12-16 13:54:03 +01:00
Jean-Baptiste Onofré 3c699dec94
Merge pull request #733 from jbonofre/AMQ-8428
[AMQ-8428] Upgrade to httpcore 4.4.15
2021-12-16 13:52:56 +01:00
Jean-Baptiste Onofré a965c2e8da [AMQ-8428] Upgrade to httpcore 4.4.15 2021-12-10 09:47:30 +01:00
Jean-Baptiste Onofré 5cbdb8b30e [AMQ-8429] Upgrade to Spring 5.3.13 2021-12-10 09:14:52 +01:00
Lucas Tétreault 60859b0b7f Use B+ Tree iterator instead of DFS to find scheduled jobs to be executed 2021-11-24 01:06:47 -08:00
Vilius Šumskas c67ada04c7 https://issues.apache.org/jira/browse/AMQ-5388 Fix user permissions in web console 2021-11-23 23:37:07 +02:00
Matt Pavlovich 67256c61b1
[AMQ-7309] Update to jakarta.jms/jakarta.jms-api:2.0.3 (#682)
- API update only
 - Throw UnsupportedOperationException
 - Disable activemq-camel from build
 - Formatting fixes
 - Use geronimo-jms for osgi-related artifacts
 - Fix features.xml invalid xml header
 - Add a unit test to confirm JMS 2.0 methods for phase 1 (throw UnsupportedOperationException)
 - Add deliveryTime field to Message
 - Minor formatting fixes
2021-11-10 11:56:04 -06:00