Qpid
  1. Qpid
  2. QPID-4238

Virtual hosts or queues with dots in their names do not work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.19
    • Fix Version/s: 0.19
    • Component/s: Java Broker
    • Labels:
      None

      Description

      The latest version of the Qpid Java broker seems to have a problem with the virtual hosts and queues containing a dot in their name. This is related to the way the virtualhosts.xml configuration file is designed. When a queue is defined, the <queue> tag contains only the <name> tag with the queue name and a tag named after the queue which contains additional details. E.g.

      <queue>
      <name>queue.with.dot.in.the.name</name>
      <queue.with.dot.in.the.name>
      <durable>true</durable>
      </queue.with.dot.in.the.name>
      </queue>

      Unfortunately the dots are also used as special characters when working with the configuration file - they are used as delimiters in the XML hierarchy. In order to use them in the tag names, they need to be escaped with additional dot (i.e. queue..with..dot..in..the..name instead of queue.with.dot.in.the.name - http://commons.apache.org/configuration/userguide-1.2/howto_xml.html). This escaping doesn't seem to be currently done on the broker. As a result, the dots cannot be used in virtual host names or in queue names, which might be unfortunate for some users.

      1. QPID-4238.patch
        3 kB
        Jakub Scholz
      2. QPID-4238-tests.patch
        3 kB
        Jakub Scholz

        Activity

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Jakub Scholz
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development