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] AJP HttpServletRequest.getLocalAddr() returns null when using the AJP Connector
Date Mon, 27 Oct 2008 21:38:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46082


Mark Thomas <markt@apache.org> changed:

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




--- Comment #1 from Mark Thomas <markt@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


Mime
View raw message