activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (AMQCPP-477) Can't specify empty values in URIs
Date Fri, 26 Apr 2013 22:32:16 GMT

     [ https://issues.apache.org/jira/browse/AMQCPP-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish closed AMQCPP-477.
-------------------------------

    Resolution: Won't Fix
    
> 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

Mime
View raw message