You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/12/28 09:36:48 UTC
svn commit: r1721881 - in /tomcat/trunk:
java/org/apache/catalina/core/StandardContext.java
webapps/docs/config/context.xml
Author: markt
Date: Mon Dec 28 08:36:48 2015
New Revision: 1721881
URL: http://svn.apache.org/viewvc?rev=1721881&view=rev
Log:
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=58765
Change default for mapperContextRootRedirectEnabled to true since this is required for correct session management because of the default for sessionCookiePathUsesTrailingSlash.
Modified:
tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
tomcat/trunk/webapps/docs/config/context.xml
Modified: tomcat/trunk/java/org/apache/catalina/core/StandardContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/StandardContext.java?rev=1721881&r1=1721880&r2=1721881&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/StandardContext.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/StandardContext.java Mon Dec 28 08:36:48 2015
@@ -817,7 +817,7 @@ public class StandardContext extends Con
private boolean validateClientProvidedNewSessionId = true;
- private boolean mapperContextRootRedirectEnabled = false;
+ private boolean mapperContextRootRedirectEnabled = true;
private boolean mapperDirectoryRedirectEnabled = false;
Modified: tomcat/trunk/webapps/docs/config/context.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/config/context.xml?rev=1721881&r1=1721880&r2=1721881&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/config/context.xml (original)
+++ tomcat/trunk/webapps/docs/config/context.xml Mon Dec 28 08:36:48 2015
@@ -365,7 +365,7 @@
redirected (adding a trailing slash) if necessary by the Mapper rather
than the default Servlet. This is more efficient but has the side effect
of confirming that the context path exists. If not specified, the
- default value of <code>false</code> is used.</p>
+ default value of <code>true</code> is used.</p>
</attribute>
<attribute name="mapperDirectoryRedirectEnabled" required="false">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org