Uploaded image for project: 'ActiveMQ Apollo'
  1. ActiveMQ Apollo
  2. APLO-393

List of the allowed host names of the virtual host is case-sensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.7.1
    • None
    • apollo-broker
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            @VID Eykhler Vladimir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: