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

STOMP headers are not escaped when using WebSocket

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.14.5
    • 5.15.0, 5.14.6
    • STOMP
    • None
    • 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.patch
          7 kB
          Albertas Vyšniauskas
        2. stomp-over-websocket-escape-2.patch
          7 kB
          Albertas Vyšniauskas

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: