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

CLI escapes anpersand in double-quoted strings

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8.2.0.Final
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aloubyansky Oleksiy Lubyanskyy
                Reporter:
                syroeshko Roman Syroeshko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: