With the current ActiveMQ broker version 5.15.4 I tested the Value Encoding as per STOMP 1.2.
When the client transmits a STOMP SEND frame with header value "carriage return" encoded as
\r (octet 92 and 114)
the ActiveMQ server returns the header value in the MESSAGE frame as
\\r (octet 92 and octet 92 and 114)
This seems to be a bug in the ActiveMQ 5.15.4 implementation of STOMP 1.2, or do I miss something?
Below is the log of the STOMP communication
CONNECT
login:user
passcode:password
accept-version:1.2
CONNECTED
server:ActiveMQ/5.15.4
heart-beat:0,0
session:ID:Win7Dev-49161-1530547599088-3:4
version:1.2
SEND
destination:/queue/TStomp12TestCase.TestEscapes
key:\\\\
keyr:\r
keyn:\n
keyc:\c
content-type:text/plain
SUBSCRIBE
destination:/queue/TStomp12TestCase.TestEscapes
ack:auto
id:{9E633940-4C8B-497A-BE64-2D946AA5D019}
MESSAGE
keyr:\\r
expires:0
destination:/queue/TStomp12TestCase.TestEscapes
subscription:{9E633940-4C8B-497A-BE64-2D946AA5D019}
priority:4
keyc:\c
message-id:ID\cWin7Dev-49161-1530547599088-3\c4\c-1\c1\c1
content-type:text/plain
keyn:\n
key:\\\\
timestamp:1530547733935