activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Albertas Vyšniauskas (JIRA) <j...@apache.org>
Subject [jira] [Created] (AMQ-6699) STOMP headers are not escaped when using WebSocket
Date Fri, 09 Jun 2017 10:31:18 GMT
Albertas Vyšniauskas created AMQ-6699:
-----------------------------------------

             Summary: STOMP headers are not escaped when using WebSocket
                 Key: AMQ-6699
                 URL: https://issues.apache.org/jira/browse/AMQ-6699
             Project: ActiveMQ
          Issue Type: Bug
          Components: stomp
    Affects Versions: 5.14.6
         Environment: Java SE Runtime Environment (build 1.8.0_102-b14)
            Reporter: Albertas Vyšniauskas
            Priority: Minor


When using STOMP over WebSockets, STOMP header values are not escaped in frames sent by ActiveMQ.

When the following frame is sent:
{quote}
SEND
destination:/queue/test
escaped-header:one\ntwo\cthree

Hello World
{quote}
ActiveMQ interprets escaped headers correctly, but does not escape them when sending own frames:
{quote}
MESSAGE
expires:0
destination:/queue/test
subscription:12345
priority:4
escaped-header:one
two:three
message-id:ID:-50091-1497003246573-3:1:-1:1:1
timestamp:1497003247783

Hello World
{quote}
Correctly escaped frame should look like this:
{quote}
MESSAGE
expires:0
destination:/queue/test
subscription:12345
priority:4
escaped-header:one\ntwo\cthree
message-id:ID\c-50091-1497003246573-3\c1\c-1\c1\c1
timestamp:1497003247783

Hello World
{quote}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message