Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-477

Can't specify empty values in URIs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.6.0
    • None
    • Transports
    • None
    • Patch Available

    Description

      Can't specify empty values for wireFormat.topicPrefix, wireFormat.queuePrefix etc in URIs because URISupport::parseQuery doesn't support this.

      It can't parse such URI correctly:
      tcp://10.0.0.1:333?wireFormat=stomp&wireFormat.topicPrefix=&wireFormat.queuePrefix=

      I've fixed this by the following code in URISupport::parseQuery:

      int tokensCount = tokenizer.countTokens();
      if (tokensCount != 2 && tokensCount != 1) {
      throw IllegalArgumentException(_FILE, __LINE_, "URISupport::parseQuery - Invalid URI Option.");
      }

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            hzdbyte Valeriy V. Argunov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: