You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2012/07/13 16:45:34 UTC

[jira] [Commented] (AMQNET-393) URISupport.ParseQuery is missing decoding of parameters

    [ https://issues.apache.org/jira/browse/AMQNET-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13413786#comment-13413786 ] 

Timothy Bish commented on AMQNET-393:
-------------------------------------

You should supply an NUnit test case to demonstrate your issue, along with a suggested patch and ensure you grant license to Apache.
                
> URISupport.ParseQuery is missing decoding of parameters
> -------------------------------------------------------
>
>                 Key: AMQNET-393
>                 URL: https://issues.apache.org/jira/browse/AMQNET-393
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>            Reporter: Torsten
>            Assignee: Jim Gomes
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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 :
> {noformat}
> map[nameValue[0]] = HttpUtility.UrlDecode(nameValue[1]);
> {noformat}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira