Uploaded image for project: 'ActiveMQ Apollo'
  1. ActiveMQ Apollo
  2. APLO-289

spaces in topic IDs get "\u0020" inserted before them

    Details

      Description

      If I try to create a topic/queue with a space in the name, it inserts "\u0020" preceding each space.

      Here is an example in Python:
      --------
      import socket

      connect_frame = 'CONNECT\n\nlogin:admin\npasscode:password\n\n\x00'
      frame = 'SEND\ndestination:/topic/the next topic\n\nhello\x00'

      sock = socket.socket()
      sock.connect(host_and_ports) # where host_and_ports is a tuple (host, port)
      sock.sendall(connect_frame)
      sock.sendall(frame)
      --------

      Then when I get the topic information (by looking at it in the web interface or by http-getting the json info in Python), the topic id is
      the\u0020 next\u0020 topic

      We recently upgraded from Apollo 1.0 to 1.5, and I think that this issue coincides with the upgrade (there were definitely successful uses of topics with spaces in them before the upgrade).

        Attachments

          Activity

            People

            • Assignee:
              chirino Hiram Chirino
              Reporter:
              avril Avril Kenney
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: