activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMQ-6699) STOMP headers are not escaped when using WebSocket
Date Wed, 14 Jun 2017 19:19:00 GMT

     [ https://issues.apache.org/jira/browse/AMQ-6699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish updated AMQ-6699:
------------------------------
    Affects Version/s:     (was: 5.14.6)
                       5.14.5

> 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.5
>         Environment: Java SE Runtime Environment (build 1.8.0_102-b14)
>            Reporter: Albertas Vyšniauskas
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.15.0, 5.14.6
>
>         Attachments: stomp-over-websocket-escape-2.patch, stomp-over-websocket-escape.patch
>
>
> 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.4.14#64029)

Mime
View raw message