ActiveMQ
  1. ActiveMQ
  2. AMQ-3209

URISupport.createURIWithQuery() fails on some composite uris.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.5.0
    • Component/s: None
    • Labels:
    • Patch Info:
      Patch Available

      Description

      URISupport.createURIWithQuery() fails on composite URIs that have an inner query but not an outer query, e.g.:

      outerscheme:(innerscheme:innerssp?innerquery=0)

      The failure is due to the method not taking into account this possibility and assuming the query consists of everything after the last question mark. The attached patch adds a test case in org.apache.activemq.util.URISupportTest that demonstrates the problem, and also modifies URISupport.createURIWithQuery() with a suggested fix for the problem.

      1. URISupport.patch
        3 kB
        Aja Walker
      2. URISupport.patch
        4 kB
        Aja Walker

        Activity

          People

          • Assignee:
            Timothy Bish
            Reporter:
            Aja Walker
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development