Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
12.10.6
-
None
-
Unknown
-
Description
It seems the behavior of Tomcat changed regarding the implementation of ServletRequest#getServerPort(): it used to return -1 when the port was not explicitly provided in the source URL, but it now returns the resolved real port.
This does not happen with pure HTTP proxy (so not through AJP protocol) where the "x-forwarded-host" HTTP headers is set (which bypass ServletRequest#getServerPort()).