You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Valeriy V. Argunov (JIRA)" <ji...@apache.org> on 2013/04/26 17:26:16 UTC
[jira] [Commented] (AMQCPP-477) Can't specify empty values in URIs
[ https://issues.apache.org/jira/browse/AMQCPP-477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13642953#comment-13642953 ]
Valeriy V. Argunov commented on AMQCPP-477:
-------------------------------------------
But all applications that use URIs allow empty values for parameters in the query string. Also see http://en.wikipedia.org/wiki/Query_string
> Can't specify empty values in URIs
> ----------------------------------
>
> Key: AMQCPP-477
> URL: https://issues.apache.org/jira/browse/AMQCPP-477
> Project: ActiveMQ C++ Client
> Issue Type: Bug
> Components: Transports
> Affects Versions: 3.6.0
> Reporter: Valeriy V. Argunov
> Assignee: Timothy Bish
>
> 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.");
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira