This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-ac28b143-cce5-4cbe-b8f3-a48272895adf XWIKI-22394 Open

When accessing directly Tomcat, the resolved source URL can contain an extra port

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-936b0dac-7d21-477b-bce5-9e07c8cb1f58 Thomas Mortagne created this issue on 06/Aug/24 10:37
 
Summary: When accessing directly Tomcat, the resolved source URL can contain an extra port
Issue Type: cid:jira-generated-image-avatar-ac28b143-cce5-4cbe-b8f3-a48272895adf Bug
Affects Versions: 14.10.21
Assignee: Unassigned
Components: Containers
Created: 06/Aug/24 10:37
Priority: cid:jira-generated-image-static-major-38c91458-87ab-4039-b430-75cecccb4379 Major
Reporter: Thomas Mortagne
Description:

Not sure if it depends on the version of Tomcat or the Servlet API. But recent versions of Tomcat don't make the difference between explicitly indicated port or not in ServletRequest#getServerPort() (which is what we currently use as fallback). We need to find a more optimized trick for this use case (direct access to Tomcat without going through an HTTP proxy).

 
 

1 update

 
cid:jira-generated-image-avatar-936b0dac-7d21-477b-bce5-9e07c8cb1f58 Changes by Thomas Mortagne on 06/Aug/24 10:37
 
Description: Not sure if it depends on the version of Tomcat or the Servlet API. But recent versions of Tomcat don't make the difference between explicitly indicated port or not in ServletRequest#getServerPort() (which is what we currently use as fallback). We need to find a more optimized trick for this use case (direct access to Tomcat with default http or https port without going through an HTTP proxy).