Aliases were broken if the context was reloaded
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 13 Dec 2010 15:06:13 +0000 (15:06 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 13 Dec 2010 15:06:13 +0000 (15:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1045162 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/LocalStrings.properties
java/org/apache/catalina/core/StandardContext.java
webapps/docs/changelog.xml

index 51472fa..74d2dba 100644 (file)
@@ -149,6 +149,8 @@ standardContext.urlDecode=Cannot URL decode request path {0}
 standardContext.urlPattern.patternWarning=WARNING: URL pattern {0} must start with a ''/'' in Servlet 2.4
 standardContext.urlValidate=Cannot validate URL decoded request path {0}
 standardContext.workPath=Exception obtaining work path for context [{0}]
+standardContext.workCreateException=Failed to determine absolute work directory from directory [{0}] and CATALINA_HOME [{1}] for context [{2}]
+standardContext.workCreateFail=Failed to create work directory [{0}] for context [{1}]
 standardContext.wrapper.error=JSP file {0} must start with a ''/'
 standardContext.wrapper.warning=WARNING: JSP file {0} must start with a ''/'' in Servlet 2.4
 standardEngine.alreadyStarted=Engine has already been started
index 04e22c6..111791f 100644 (file)
@@ -4636,6 +4636,8 @@ public class StandardContext extends ContainerBase
                 ((BaseDirContext) webappResources).setCacheMaxSize
                     (getCacheMaxSize());
                 ((BaseDirContext) webappResources).allocate();
+                // Alias support
+                ((BaseDirContext) webappResources).setAliases(getAliases());
             }
             // Register the cache in JMX
             if (isCachingAllowed()) {
index 1d7f001..2aba539 100644 (file)
         <bug>50448</bug>: Fix possible <code>IllegalStateException</code>
         caused by recent session management refactoring. (markt)
       </fix>
+      <fix>
+        Ensure aliases settings for a context are retained after a context is
+        reloaded. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Coyote">