DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37693>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37693 Summary: APR Connector not up to Servlet 2.4 API spec for getLocalAddr() method Product: Tomcat 5 Version: 5.5.12 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Connector:HTTP AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] The servlet API spec reads as follows: getLocalAddr public java.lang.String getLocalAddr()The default behavior of this method is to return getLocalAddr() on the wrapped request object. Specified by: getLocalAddr in interface ServletRequest Returns: a String containing the IP address on which the request was received. Since: 2.4 I tracked down the bug to the following code: Http11AprProcessor.java The action() method which is called with ActionCode.ACTION_REQ_LOCAL_ADDR_ATTRIBUTE assings a hostname instead of an ip address to the localAddr variable 1050: localAddr = addr.hostname; which then sets it in the request object 1058: request.localAddr().setString(localAddr); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]