mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-08 19:15:08 +00:00
ORIG message propertes like _AMQ_ORIG_ADDRESS are added to messages during various broker operations (e.g. diverting a message, expiring a message, etc.). However, if multiple operations try to set these properties on the same message (e.g. administratively moving a message which eventually gets sent to a dead-letter address) then important details can be lost. This is particularly problematic when using auto-created dead-letter or expiry resources which use filters based on _AMQ_ORIG_ADDRESS and can lead to message loss. This commit simply over-writes the existing ORIG properties rather than preserving them so that the most recent information is available.