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 2014/09/05 18:46:31 UTC

[Bug 56917] New: Create a configuration to write relative 302 responses instead of absolute

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

            Bug ID: 56917
           Summary: Create a configuration to write relative 302 responses
                    instead of absolute
           Product: Tomcat 8
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: ajay.sindwani@gmail.com

Create a Tomcat configuration to force tomcat to write relative location
headers in 301/302 responses instead of absolute location headers.

Purpose:
Today Tomcat always writes an absolute response for redirects per RFC2616
standards.  However as many modern browsers support 302s to relative Locations
as explained in https://en.wikipedia.org/wiki/HTTP_location , our friendly
Tomcat application server should allow configuration to write back 302s in the
more friendly form.

The ripple effect of this where applications choose to use this setting, will
be very good for cpu cycles of web servers and load balancers all over the
world.   This can greatly reduce the need for ProxyPassReverse in the Apache
web server, and also for URL rewriting happenin in physical load balancers.

See this example where another gentleman has been compelled to recompile Tomcat
to achieve the same thing
http://community.jaspersoft.com/wiki/f5-load-balancer-and-tomcat-302-error

-- 
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


[Bug 56917] Create a configuration to write relative 302 responses instead of absolute

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

--- Comment #3 from Christopher Schultz <ch...@christopherschultz.net> ---
(In reply to Ajay Sindwani from comment #2)
> Both the servlet spec and Tomcat need to be updated then.  Tomcat doesn't
> have to wait for the servlet spec, unless the update is already accepted.

Tomcat, being spec-compliant, must maintain spec-compliance.

There are certainly examples of out-of-spec behavior in Tomcat which are
usually controllable via certain configuration options. It seems like this
could be one of them. Patches are always welcome.

> The expense of doing 302 rewriting can be cleaned from numerous webserver
> environments.

Are you sure? If not all clients support it, then you can't remove that
capability. It's one of the awful things about the web: you can't force users
to upgrade. ;)

-- 
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


[Bug 56917] Create a configuration to write relative 302 responses instead of absolute

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

Chuck Caldarale <ch...@unisys.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

-- 
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


[Bug 56917] Create a configuration to write relative 302 responses instead of absolute

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This would be contrary to the requirements of the Servlet specification.

See https://java.net/jira/browse/SERVLET_SPEC-100 for the request to change
that (and some other stuff).

-- 
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


[Bug 56917] Create a configuration to write relative 302 responses instead of absolute

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

--- Comment #2 from Ajay Sindwani <aj...@gmail.com> ---
Both the servlet spec and Tomcat need to be updated then.  Tomcat doesn't have
to wait for the servlet spec, unless the update is already accepted.

The expense of doing 302 rewriting can be cleaned from numerous webserver
environments.

-- 
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