Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Apache 2.2.3, proxy_ajp_module, JDK 1.5.0_11, Linux, Java Servlet Spec 2.4
-
Number of attachments :
Description
getServerPort() returns the local HTTP-port of Apache and not the port given by the HTTP-Client. That problem occurs when Apache is used with port-forwarding behind a firewall with different source and destination ports.
1. HTTP-Client sends: GET http://web:8000/index.html
2. Firewall forwards web:8000 to localserver:7000
3. Apache on localserver:7000 forwards request via AJP13 to Jetty 6.1.0
4. Jetty receives GET http://web:8000/index.html getServerName() == web (correct), getServerPort() == 7000 (wrong)
Java Servlet Spec 2.4 introduces getLocalPort() which indeed should return 7000 in this case, but getServerPort() should return 8000.
Activity
Greg Wilkins
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Leopoldo Agdeppa III [ lagdeppa ] |
Leopoldo Agdeppa III
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Bong,
I believe you have already fixed this - can you confirm?