You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "mark streit (JIRA)" <ax...@ws.apache.org> on 2005/06/20 16:23:35 UTC

[jira] Created: (AXIS-2067) tcpmon is setting the port on the Host: header to the listen port instead of target port

tcpmon is setting the port on the Host: header to the listen port instead of target port
----------------------------------------------------------------------------------------

         Key: AXIS-2067
         URL: http://issues.apache.org/jira/browse/AXIS-2067
     Project: Apache Axis
        Type: Bug
  Components: Basic Architecture  
    Versions: 1.2.1    
 Environment: Win 2K
    Reporter: mark streit


In the tcpmon utility there is a section of code:

                        // check to see if we have found Host: header
                        if (line.startsWith("Host: ")) {
                            // we need to update the hostname to target host
                            String newHost = "Host: " + targetHost + ":" + listenPort + "\r\n";

                            bufferedData = bufferedData.concat(newHost);
                            break ;
                        }

where the Host: string is being written w/ the listenPort instead of the targetPort value.  This results in the loss of functionality of the utility to be able to forward the request to the correct port.  Should this value not be the targetPort value?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira