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

URISupport.ParseQuery is missing decoding of parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.1
    • 1.6.0
    • None
    • None

    Description

      The problem is the same as mentioned here: http://timbish.blogspot.de/2011/06/apachenmsactivemq-v151-released.html?showComment=1310415346797#c3045395630917744034

      If the uri contains encoded parameters the will not be correctly decoded in URISupport.ParseQuery. Hence the match of the certificates subject name fails.

      The fix should be quite simple (not tested):

      Decode the parameter in URISupport.ParseQuery :

      map[nameValue[0]] = HttpUtility.UrlDecode(nameValue[1]);
      

      Example:

      My URL Paramter Value for "tansport.clientcertsubject" ist:
      CN=system, OU=global, O=ABC, L=Somewhere, S=State, C=com

      In the uri I added it with HttpUtility.UrlDecode() and results in the URL:

      ?serverName=communote-test-broker&transport.clientCertSubject=CN%3dsystem%2c+OU%3dglobal%2c+O%3dABC...

      Now URISupport will parse it, split it by "=" and decode the single parameter values.

      Attachments

        1. URISupportTest.cs
          1 kB
          Torsten

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified