Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-281

NMS ActiveMQ and Stomp providers fail to Parse a Uri with params on both the outer and inner Uri's

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0
    • 1.4.1
    • ActiveMQ, Stomp
    • None

    Description

      Some Uri string that are formatted as below can fail parse in the ConnectionFactory BrokerUri set property as the .NET Uri class returns the inner query string portion in this case.

      activemq:failover:(tcp://${activemqhost}:61616?keepAlive=false&wireFormat.maxInactivityDuration=1000)"
      activemq:failover:(tcp://${activemqhost}:61616?keepAlive=false&wireFormat.maxInactivityDuration=1000)?connection.asyncclose=false"
      

      In the first Uri the Query string returned is:

      ?keepAlive=false&wireFormat.maxInactivityDuration=1000)
      

      and in the second its

      ?keepAlive=false&wireFormat.maxInactivityDuration=1000)?connection.asyncclose=false
      

      We need to modify the provider ConnectionFactory code to ensure that it doesn't use the inner Query params from the composite Uri.

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            tabish Timothy A. Bish
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: