tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From violet...@apache.org
Subject svn commit: r1653815 - /tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
Date Thu, 22 Jan 2015 11:47:51 GMT
Author: violetagg
Date: Thu Jan 22 11:47:50 2015
New Revision: 1653815

URL: http://svn.apache.org/r1653815
Log:
When closing the stream for the host's web.xml if an exception occur then hostTimeStamp must
be set to -1 and not the globalTimeStamp. Issue reported by Coverity Scan.

Modified:
    tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java

Modified: tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java?rev=1653815&r1=1653814&r2=1653815&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java (original)
+++ tomcat/trunk/java/org/apache/catalina/startup/ContextConfig.java Thu Jan 22 11:47:50 2015
@@ -1493,7 +1493,7 @@ public class ContextConfig implements Li
                         uc.getInputStream().close();
                     } catch (IOException e) {
                         ExceptionUtils.handleThrowable(e);
-                        globalTimeStamp = -1;
+                        hostTimeStamp = -1;
                     }
                 }
             }



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


Mime
View raw message