You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/06/06 19:09:35 UTC

DO NOT REPLY [Bug 47324] New: sessionsList.jsp uses absolute urls which doesn't work for Tomcat behind a reverse proxy

https://issues.apache.org/bugzilla/show_bug.cgi?id=47324

           Summary: sessionsList.jsp uses absolute urls which doesn't work
                    for Tomcat behind a reverse proxy
           Product: Tomcat 6
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Manager application
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: maik.jablonski@gmail.com


sessionsList.jsp uses getRequestURL() which creates absolute links (with
server:port included) like:

http://localhost:8080/manager/html/sessions?path=/

This is a problem when running Tomcat-Manager-Application behind a reverse
proxy (e.g. apache http server), because outgoing links doesn't work anymore.

Proposed fix is to use getRequestURI instead.

29c29
<    String submitUrl =
((HttpServletRequest)pageContext.getRequest()).getRequestURL().append("?path=").append(path).toString();
---
>    String submitUrl = ((HttpServletRequest)pageContext.getRequest()).getRequestURI() + "?path=" + path;

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47324] sessionsList.jsp uses absolute urls which doesn't work for Tomcat behind a reverse proxy

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47324

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Mark Thomas <ma...@apache.org> 2009-10-03 22:09:25 BST ---
This has been fixed in 6.0.x and will be in 6.0.21 onwards.

Thanks again for the patch.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 47324] sessionsList.jsp uses absolute urls which doesn't work for Tomcat behind a reverse proxy

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47324

--- Comment #1 from Mark Thomas <ma...@apache.org> 2009-09-27 18:45:57 BST ---
Many thanks for the patch. It has been applied to trunk and proposed for 6.0.x.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org