ASF Bugzilla – Attachment 17077 Details for
Bug 37673
Http11AprProcessor.java - getLocalAddr() returns HostName
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
JSP example demonstrating the bug
TestGetLocalAddr.jsp (text/html), 327 bytes, created by
Nate Rock
on 2005-11-29 17:54:24 UTC
(
hide
)
Description:
JSP example demonstrating the bug
Filename:
MIME Type:
Creator:
Nate Rock
Created:
2005-11-29 17:54:24 UTC
Size:
327 bytes
patch
obsolete
><html> > <body> > <b><font color="green">HttpServletRequest.getLocalName():</font> <%= request.getLocalName() %></b> - Correct returns hostname > </br> > <b><font color="red">HttpServletRequest.getLocalAddr():</font> <%= request.getLocalAddr() %></b> - Incorrect returns hostname, should return IP address > </body> ></html>
<html> <body> <b><font color="green">HttpServletRequest.getLocalName():</font> <%= request.getLocalName() %></b> - Correct returns hostname </br> <b><font color="red">HttpServletRequest.getLocalAddr():</font> <%= request.getLocalAddr() %></b> - Incorrect returns hostname, should return IP address </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 37673
: 17077