Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
3.6.0
-
None
-
None
-
Patch Available
Description
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.");
}