Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Do
-
1.7.1
-
None
-
None
-
Windows 7 x64, jdk 1.7.0.60, STOMP
Description
Apollo.xml contains one virtual host with host names list:
<broker xmlns="http://activemq.apache.org/schema/activemq/apollo"> ... <virtual_host id="default"> <host_name>SERVER_NAME</host_name> <null_store/> </virtual_host> <connector id="tcp" bind="tcp://SERVER_NAME:61613" connection_limit="2000"/> </broker>
The application connect to the broker through the Apache.NMS.Stomp client library by specifying a broker address and port as URI string (tcp://SERVER_NAME:PORT), the scheme and host portion of URI is case insensitive (by RFC 3986) and SERVER_NAME could be normalized to lower case ('server_name'). Now, if connecting to a broker with URI of tcp://server_name:port receiving an error
Command: ERROR Header: message:Invalid virtual host\c server_name
After adding host_name tag with host name in lower case (server_name) to apollo.xml configuration file the error is gone.
But I don't see where case-sensitive host names can be useful.