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 2016/08/19 10:14:28 UTC
svn commit: r1756898 - in /tomcat/trunk:
java/org/apache/catalina/webresources/StandardRoot.java
webapps/docs/changelog.xml
Author: markt
Date: Fri Aug 19 10:14:28 2016
New Revision: 1756898
URL: http://svn.apache.org/viewvc?rev=1756898&view=rev
Log:
Changes to allowLinking now invalidate the cache if caching is enabled.
Modified:
tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java
tomcat/trunk/webapps/docs/changelog.xml
Modified: tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java?rev=1756898&r1=1756897&r2=1756898&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java (original)
+++ tomcat/trunk/java/org/apache/catalina/webresources/StandardRoot.java Fri Aug 19 10:14:28 2016
@@ -472,6 +472,10 @@ public class StandardRoot extends Lifecy
@Override
public void setAllowLinking(boolean allowLinking) {
+ if (this.allowLinking != allowLinking && cachingAllowed) {
+ // If allow linking changes, invalidate the cache.
+ cache.clear();
+ }
this.allowLinking = allowLinking;
}
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1756898&r1=1756897&r2=1756898&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Fri Aug 19 10:14:28 2016
@@ -141,6 +141,11 @@
<bug>60012</bug>: Improvements in the log messages. Based on
suggestions by Nemo Chen. (violetagg)
</fix>
+ <fix>
+ Changes to the <code>allowLinking</code> attribute of a
+ <code>StandardRoot</code> instance now invalidate the cache if caching
+ is enabled. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org