You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/10/27 22:38:28 UTC

DO NOT REPLY [Bug 46082] AJP HttpServletRequest.getLocalAddr() returns null when using the AJP Connector

https://issues.apache.org/bugzilla/show_bug.cgi?id=46082


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-10-27 14:38:27 PST ---
The AJP protocol only passes the web server host name and port. It does not
pass the IP address. Therefore, getLocalName() will return whatever is passed
via AJP but getLocalAddr() will always return null.

Whilst getLocalAddr() could be modified to return the IP address Tomcat is
listening on for AJP connections, I don't like the inconsistency that would
generate when compared to getLocalName() and getLocalPort().


-- 
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