Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6699

STOMP headers are not escaped when using WebSocket

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.14.5
    • Fix Version/s: 5.15.0, 5.14.6
    • Component/s: STOMP
    • Labels:
      None
    • Environment:

      Java SE Runtime Environment (build 1.8.0_102-b14)

      Description

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

      When the following frame is sent:

      SEND
      destination:/queue/test
      escaped-header:one\ntwo\cthree

      Hello World

      ActiveMQ interprets escaped headers correctly, but does not escape them when sending own frames:

      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

      Correctly escaped frame should look like this:

      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

        Attachments

        1. stomp-over-websocket-escape-2.patch
          7 kB
          Albertas Vyšniauskas
        2. stomp-over-websocket-escape.patch
          7 kB
          Albertas Vyšniauskas

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              thezbyg Albertas Vyšniauskas
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: