DO NOT REPLY [Bug 37859] - add a reliable "real_remote_socket" and "real_remote_port" attribute to requets

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DO NOT REPLY [Bug 37859] - add a reliable "real_remote_socket" and "real_remote_port" attribute to requets

Bugzilla from bugzilla@apache.org
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=37859>.
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=37859


[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |enhancement
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Summary|getServerPort() not reliable|add a reliable
                   |                            |"real_remote_socket" and
                   |                            |"real_remote_port" attribute
                   |                            |to requets
            Version|5.5.9                       |Unknown




------- Additional Comments From [hidden email]  2006-01-20 19:00 -------
ok, understood - especially if there is a proxy in-between you don't want the
proxy address but the address and port of the original requestor.

However, wouldn't it be useful, to add e.g. in
org.apache.coyote.http11.Http11Processor

a request.setAttribute("javax.servlet.request.real_remote_host", socket.
getRemoteSocketAddress()); //or socket.getInetAddress() ?
and a request.setAttribute("javax.servlet.request.real_remote_port",
socket.getPort())
?

--
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: [hidden email]
For additional commands, e-mail: [hidden email]