Author: markt
Date: Fri May 18 19:04:12 2018
New Revision: 1831873
URL: http://svn.apache.org/viewvc?rev=1831873&view=rev
Log:
Do not log a warning message if the file based persistent session store fails
to delete the file for a session when the session is invalidated because the
file has not been created yet.
Modified:
tomcat/trunk/java/org/apache/catalina/session/FileStore.java
tomcat/trunk/webapps/docs/changelog.xml
Modified: tomcat/trunk/java/org/apache/catalina/session/FileStore.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/session/FileStore.java?rev=1831873&r1=1831872&r2=1831873&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/session/FileStore.java (original)
+++ tomcat/trunk/java/org/apache/catalina/session/FileStore.java Fri May 18
19:04:12 2018
@@ -265,7 +265,7 @@ public final class FileStore extends Sto
id, file.getAbsolutePath()));
}
- if (!file.delete()) {
+ if (file.exists() && !file.delete()) {
throw new
IOException(sm.getString("fileStore.deleteSessionFailed", file));
}
}
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1831873&r1=1831872&r2=1831873&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Fri May 18 19:04:12 2018
@@ -101,6 +101,12 @@
incorrectly cache results for resources that are only visible as class
loader resources. (markt)
</fix>
+ <fix>
+ <bug>62387</bug>: Do not log a warning message if the file based
+ persistent session store fails to delete the file for a session when
the
+ session is invalidated because the file has not been created yet.
+ (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]