Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5048

CLI escapes anpersand in double-quoted strings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Cannot Reproduce
    • 8.2.0.Final
    • None
    • CLI

    Description

      I use Qpid JCA to work with AMQP message broker via JMS API. Qpid JCA is configured through Jboss CLI. Queues in Qpid are addressed using Binding URL. The format uses ampersands to separate additional options.

      For example,
      BURL:direct://AnotherExchange//AnotherQueue?routingkey='AnotherQueue'&durable='true'&autodelete='false'&exchangedurable='true'&exchangeautodelete='false'

      But when I run cli-command like that:

      ./admin-objects=AnotherQueue:add(class-name=org.apache.qpid.ra.admin.QpidQueueImpl,jndi-name=java:/comp/env/jms/AnotherQueue)
      ./admin-objects=AnotherQueue/config-properties=DestinationAddress:add(value="BURL:direct://AnotherExchange//AnotherQueue?routingkey='AnotherQueue'&durable='true'&autodelete='false'&exchangedurable='true'&exchangeautodelete='false'")
      

      I get

      <admin-object class-name="org.apache.qpid.ra.admin.QpidQueueImpl" jndi-name="java:/comp/env/jms/AnotherQueue" pool-name="AnotherQueue">
          <config-property name="DestinationAddress">
              BURL:direct://AnotherExchange//AnotherQueue?routingkey='AnotherQueue'&amp;durable='true'&amp;autodelete='false'&amp;exchangedurable='true'&amp;exchangeautodelete='false'
          </config-property>
      </admin-object>
      

      instead of

      <admin-object class-name="org.apache.qpid.ra.admin.QpidQueueImpl" jndi-name="java:/comp/env/jms/AnotherQueue" pool-name="AnotherQueue">
          <config-property name="DestinationAddress">
              BURL:direct://AnotherExchange//AnotherQueue?routingkey='AnotherQueue'&durable='true'&autodelete='false'&exchangedurable='true'&exchangeautodelete='false'
          </config-property>
      </admin-object>
      

      It seemed to me that CLI shouldn't escape double-quoted values. Am I missing something?

      Thanks.

      Attachments

        Activity

          People

            olubyans@redhat.com Oleksiy Lubyanskyy
            syroeshko Roman Syroeshko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: