tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46082] New: AJP HttpServletRequest.getLocalAddr() returns null when using the AJP Connector
Date Fri, 24 Oct 2008 15:27:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46082

           Summary: AJP HttpServletRequest.getLocalAddr() returns null when
                    using the AJP Connector
           Product: Tomcat 6
           Version: 6.0.14
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Connectors
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: Peter.Pichler@lfrz.at


I saw this problem in serveral different installations... using mod_jk as well
as mod_proxy... Currently I am analysing an installation with an apache 1.3.41
using mod_jk (1.2.23).

request.getLocalAddr() returns null... 
request.getLocalPort() returns 447

447 is the used apache https port.

The ServletSpec is not very concrete how to answer this... but returning null
is a bug definitly...

Solution Approaches
1.) Idealy getLocalAddr() should return the IP Address of the network interface
used to reach apache...

2.) From my point of view it would be also ok, when returning IP and Port(!!!!)
over which the AJP connector have been reached... 

3.) If both is not possible it would be great to have an additional
configuration setting for the AJP connector.. eg request.LocalAddr and
request.LocalPort... This shuld be easy to implement.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message